Martin Schwenke has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1215437?usp=email )
Change subject: scripts: Clean up ganesha_mgr help
......................................................................
scripts: Clean up ganesha_mgr help
Use a multiline f-string to neaten the usage message.
Add a couple of functions to print help messages and exit. Use them
to reduce duplication and increase consistency of both the content of
error messages and the code that produces them.
Consistently print the name of the actual script being run.
Signed-off-by: Martin Schwenke <mschwenke(a)ddn.com>
Change-Id: I9da99cf52e37e496f45578c2a18cb1226a066ae2
---
M src/scripts/ganeshactl/ganesha_mgr.py
1 file changed, 95 insertions(+), 124 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/37/1215437/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1215437?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I9da99cf52e37e496f45578c2a18cb1226a066ae2
Gerrit-Change-Number: 1215437
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Schwenke <martin(a)meltin.net>