[ovs-dev] [PATCH] ovn-trace: Add output format options to usage message.

Ben Pfaff blp at ovn.org
Sun Oct 23 18:25:02 UTC 2016


Also adjust the indentation of the option explanations so that they line up
better.

Signed-off-by: Ben Pfaff <blp at ovn.org>
---
 ovn/utilities/ovn-trace.c | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/ovn/utilities/ovn-trace.c b/ovn/utilities/ovn-trace.c
index 3d62cf8..571d531 100644
--- a/ovn/utilities/ovn-trace.c
+++ b/ovn/utilities/ovn-trace.c
@@ -243,17 +243,22 @@ usage(void)
 usage: %s [OPTIONS] DATAPATH MICROFLOW\n\
        %s [OPTIONS] --detach\n\
 \n\
-Options:\n\
-  --db=DATABASE               connect to DATABASE\n\
-                              (default: %s)\n",
-           program_name, program_name, program_name, default_sb_db());
+Option format options:\n\
+  --detailed              table-by-table \"backtrace\" (default)\n\
+  --summary               less detailed, more parseable\n\
+  --minimal               minimum to explain externally visible behavior\n\
+  --all                   provide all forms of output\n",
+           program_name, program_name, program_name);
     daemon_usage();
     vlog_usage();
     printf("\n\
 Other options:\n\
-  --unixctl=SOCKET            set control socket name\n\
-  -h, --help                  display this help message\n\
-  -V, --version               display version information\n");
+  --db=DATABASE           connect to DATABASE\n\
+                          (default: %s)\n\
+  --unixctl=SOCKET        set control socket name\n\
+  -h, --help              display this help message\n\
+  -V, --version           display version information\n",
+           default_sb_db());
     stream_usage("database", true, true, false);
     exit(EXIT_SUCCESS);
 }
-- 
2.1.3




More information about the dev mailing list