Martin Schwenke has uploaded this change for review.

View Change

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@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 change 1215437. To unsubscribe, or for help writing mail filters, visit settings.

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@meltin.net>