ovs-vsctl: Allow command-specific options to mingle with global options.
authorBen Pfaff <blp@nicira.com>
Mon, 10 Dec 2012 22:24:36 +0000 (14:24 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 10 Dec 2012 22:24:36 +0000 (14:24 -0800)
commit401d5a6d16438ceb2e09c19677b97504593b4b51
treed6ec30e462f50396a426b178c1df61d1adbbf897
parentd985011876e25b4da55ffe02d2455f569c94abe0
ovs-vsctl: Allow command-specific options to mingle with global options.

Until now, a command like "ovs-vsctl --may-exist add-br br0" yielded a
confusing error message.  Users had to realize that the correct form was
"ovs-vsctl -- --may-exist add-br br0", but instead they often reported a
bug or gave up in frustration.  Even though the behavior was documented, it
was counterintuitive.

This commit allows command-specific options to be mixed with global
options, making both forms of the command listed above equally acceptable.

CC: 691508@bugs.debian.org
Reported-by: Adam Heath <doogie@brainfood.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
AUTHORS
tests/ovs-vsctl.at
utilities/ovs-vsctl.8.in
utilities/ovs-vsctl.c