cli: do not use --component in help command, only use leftover argument
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 20 Sep 2017 00:04:03 +0000 (20:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Nov 2017 20:11:00 +0000 (16:11 -0400)
commit75a1a7998e3383c42a6d5d5d2f943990b2292fe3
tree021cceef6686e079da414fa713080ea6b456d455
parentf724ce6d65b7212163e0ad1dcf9d33af834cf62b
cli: do not use --component in help command, only use leftover argument

Options should be used for optional arguments. In the case of
`babeltrace help`, the component class specification is mandatory when
you don't want help about a plugin, so use the first positional
"leftover" argument.

First try the TYPE.PLUGIN.COMPCLS form, then fallback to PLUGIN if it's
invalid.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
cli/babeltrace-cfg-cli-args.c
cli/babeltrace.c
This page took 0.025527 seconds and 4 git commands to generate.