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

Jiří Pírko jirka at fedoraproject.org
Sat May 4 17:01:40 UTC 2013


commit 82a04dd56989f8bdd7927bce8c1d03a2d8454445
Author: Radek Pazdera <rpazdera at redhat.com>
Date:   Sat May 4 00:00:16 2013 +0200

    lnst-ctl: Changing underscore to dash in -p option
    
    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


More information about the LNST-developers mailing list