[ovs-git] [openvswitch/ovs] 66fa2c: command-line: Add function to print all options.
GitHub
noreply at github.com
Wed Oct 29 01:44:17 UTC 2014
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 66fa2c884fe9aee48217a76189a148bf215e0f5d
https://github.com/openvswitch/ovs/commit/66fa2c884fe9aee48217a76189a148bf215e0f5d
Author: Alex Wang <alexw at nicira.com>
Date: 2014-10-28 (Tue, 28 Oct 2014)
Changed paths:
M lib/command-line.c
M lib/command-line.h
M ovsdb/ovsdb-tool.c
M utilities/ovs-appctl.c
M utilities/ovs-dpctl.c
M utilities/ovs-ofctl.c
Log Message:
-----------
command-line: Add function to print all options.
This commit adds a function that prints (both long and short)
options of a ovs-* command. To use this function, option
'--option' is added to ovs-appctl/dpctl/ofctl and ovsdb-tool
commands. A future patch will use the option output to
conduct bash command-line completion.
Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>
Commit: 91a11f5b19a370958d9f7b1827f2861d9dae16d8
https://github.com/openvswitch/ovs/commit/91a11f5b19a370958d9f7b1827f2861d9dae16d8
Author: Alex Wang <alexw at nicira.com>
Date: 2014-10-28 (Tue, 28 Oct 2014)
Changed paths:
M lib/unixctl.c
M tests/unixctl-py.at
M utilities/ovs-appctl.8.in
M utilities/ovs-appctl.c
Log Message:
-----------
ovs-appctl: Rename 'help' to 'list-commands'.
Having 'ovs-appctl help' and 'ovs-appctl --help' print different
output is confusing. This commit renames the 'help' to 'list-commands'.
Also, future patches will add the 'list-commands' to other ovs-*
commands, and the output will be used by bash command-line completion
script.
Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>
Commit: 56cad66697eba8ee9b7c52ac3051407210dadc70
https://github.com/openvswitch/ovs/commit/56cad66697eba8ee9b7c52ac3051407210dadc70
Author: Alex Wang <alexw at nicira.com>
Date: 2014-10-28 (Tue, 28 Oct 2014)
Changed paths:
M lib/dpctl.c
M lib/dpctl.h
M utilities/ovs-dpctl.c
Log Message:
-----------
dpctl: Implement 'list-commands' function.
This commit implements the 'list-commands' command for ovs-dpctl
and ovs-appctl dpctl/* commands. The function will print the
usage string for each subcommand.
Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>
Commit: 451de37e7fe6a89a482771fbec5e653be6117380
https://github.com/openvswitch/ovs/commit/451de37e7fe6a89a482771fbec5e653be6117380
Author: Alex Wang <alexw at nicira.com>
Date: 2014-10-28 (Tue, 28 Oct 2014)
Changed paths:
M lib/command-line.c
M lib/command-line.h
M ovsdb/ovsdb-tool.c
M tests/ovstest.c
M tests/test-bitmap.c
M tests/test-classifier.c
M tests/test-cmap.c
M tests/test-heap.c
M tests/test-jsonrpc.c
M tests/test-ovsdb.c
M tests/test-reconnect.c
M tests/test-util.c
M tests/test-vconn.c
M utilities/ovs-benchmark.c
M utilities/ovs-ofctl.c
Log Message:
-----------
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 at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>
Compare: https://github.com/openvswitch/ovs/compare/ee4dac3bb6dc...451de37e7fe6
More information about the git
mailing list