[PATCH] lnst-ctl: Changing underscore to dash in -p option

Radek Pazdera rpazdera at redhat.com
Fri May 3 22:00:16 UTC 2013


This patch changes the underscore in the --patcket_capture long option
to a dash. Dashes are much more common.
---
 lnst-ctl |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lnst-ctl b/lnst-ctl
index 68e9bec..dcb4cd2 100755
--- a/lnst-ctl
+++ b/lnst-ctl
@@ -32,7 +32,7 @@ def usage():
     print ""
     print "OPTIONS"
     print "  -d, --debug                     emit debugging messages"
-    print "  -p, --packet_capture            capture and log all ongoing\n" \
+    print "  -p, --packet-capture            capture and log all ongoing\n" \
           "                                  network communication during\n" \
           "                                  the test"
     print "  -h, --help                      print this message"
@@ -94,7 +94,7 @@ def main():
             sys.argv[1:],
             "dhr:cx:po",
             ["debug", "help", "recipe=", "cleanup", "result=",
-             "packet_capture", "disable-pool-checks"]
+             "packet-capture", "disable-pool-checks"]
         )
     except getopt.GetoptError as err:
         print str(err)
@@ -133,7 +133,7 @@ def main():
             cleanup = True
         elif opt in ("-x", "--result"):
             result_path = arg
-        elif opt in ("-p", "--packet_capture"):
+        elif opt in ("-p", "--packet-capture"):
             packet_capture = True
         elif opt in ("-o", "--disable-pool-checks"):
             pool_checks = False
-- 
1.7.7.6



More information about the LNST-developers mailing list