command-line: Add function to print command usage.
authorAlex Wang <alexw@nicira.com>
Thu, 16 Oct 2014 20:27:32 +0000 (13:27 -0700)
committerAlex Wang <alexw@nicira.com>
Wed, 29 Oct 2014 01:43:11 +0000 (18:43 -0700)
commit451de37e7fe6a89a482771fbec5e653be6117380
treeb95caf67c9236afa85036aba47fd025aa8502357
parent56cad66697eba8ee9b7c52ac3051407210dadc70
command-line: Add function to print command usage.

This commit adds a new variable in 'struct command' for
recording the command usage.  Also, a new function is
added to print the usage given the array of defined
commands.

Later patch will use the output in bash command-line
completion script.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
15 files changed:
lib/command-line.c
lib/command-line.h
ovsdb/ovsdb-tool.c
tests/ovstest.c
tests/test-bitmap.c
tests/test-classifier.c
tests/test-cmap.c
tests/test-heap.c
tests/test-jsonrpc.c
tests/test-ovsdb.c
tests/test-reconnect.c
tests/test-util.c
tests/test-vconn.c
utilities/ovs-benchmark.c
utilities/ovs-ofctl.c