]> git.notmuchmail.org Git - apitrace/commitdiff
Minor cleanup to apitrace trim command line option parsing.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 18 Feb 2012 15:33:12 +0000 (15:33 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 18 Feb 2012 15:33:12 +0000 (15:33 +0000)
cli/cli_trim.cpp

index 73c18d1f58dc923e26bd298657b8200ed717e7b3..2ea525103991ba574e3f4a59aa38916926ad55e4 100644 (file)
@@ -46,9 +46,9 @@ usage(void)
         << "usage: apitrace trim [OPTIONS] TRACE_FILE...\n"
         << synopsis << "\n"
         "\n"
-        "    -h, --help             show this help message and exit\n"
-        "    --calls=CALLSET        only trim specified calls\n"
-        "    -o --output=TRACE_FILE output trace file\n"
+        "    -h, --help               show this help message and exit\n"
+        "        --calls=CALLSET      only trim specified calls\n"
+        "    -o, --output=TRACE_FILE  output trace file\n"
         "\n"
     ;
 }
@@ -64,7 +64,6 @@ const static struct option
 longOptions[] = {
     {"help", no_argument, 0, 'h'},
     {"calls", required_argument, 0, CALLS_OPT},
-    {"calls", required_argument, 0, CALLS_OPT},
     {"output", optional_argument, 0, 'o'},
     {0, 0, 0, 0}
 };