commit 7ed6a041a7c9207873591c0a5a0369891fa43ff6
Author: Radek Pazdera <rpazdera(a)redhat.com>
Date: Wed Nov 21 13:39:25 2012 +0100
scripts usage: Formatting changes
Some small formatting changes were made to the scripts' help messages.
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
lnst-ctl | 21 ++++++++++-----------
lnst-slave | 12 ++++++------
2 files changed, 16 insertions(+), 17 deletions(-)
---
diff --git a/lnst-ctl b/lnst-ctl
index 00413fd..2ce304f 100755
--- a/lnst-ctl
+++ b/lnst-ctl
@@ -25,20 +25,19 @@ def usage():
"""
Print usage of this app
"""
- print "Usage:"
- print "nettestctl.py [OPTION...] [RECIPE...] ACTION"
+ print "Usage: %s [OPTION...] [RECIPE...] ACTION" % sys.argv[0]
print ""
print "ACTION = [run | dump | config_only]"
print ""
- print "options:"
- print " -d, --debug emit debugging messages"
- print " -p, --packet_capture capture and log all
ongoing\n" \
- " network communication
during\n" \
- " the test"
- print " -h, --help print this message"
- print " -c, --cleanup perform config cleanup\n"
\
- " machines"
- print " -x, --result=FILE file to write xml_result"
+ print "OPTIONS"
+ print " -d, --debug emit debugging messages"
+ print " -p, --packet_capture capture and log all ongoing\n" \
+ " network communication during\n" \
+ " the test"
+ print " -h, --help print this message"
+ print " -c, --cleanup perform config cleanup\n" \
+ " machines"
+ print " -x, --result=FILE file to write xml_result"
sys.exit()
def process_recipe(action, file_path, cleanup, res_serializer,
diff --git a/lnst-slave b/lnst-slave
index 4244209..f0b959f 100755
--- a/lnst-slave
+++ b/lnst-slave
@@ -24,13 +24,13 @@ def usage():
"""
Print usage of this app
"""
- print "Usage: nettestslave.py [OPTION...]"
+ print "Usage: %s [OPTION...]" % sys.argv[0]
print ""
- print " -d, --debug emit debugging messages"
- print " -h, --help print this message"
- print " -e, --daemonize go to background after
init"
- print " -i, --pidfile file to write daemonized
process pid"
- print " -p, --port xmlrpc port"
+ print " -d, --debug emit debugging messages"
+ print " -h, --help print this message"
+ print " -e, --daemonize go to background after init"
+ print " -i, --pidfile file to write daemonized process pid"
+ print " -p, --port xmlrpc port to listen on"
sys.exit()
def main():
Show replies by date