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 19:48:41 +0000 (15:48 -0400)
commite5c7cd9b7fd9636451d9a1b788aa1b151963de48
tree56434f80e950549ac5bcf787a7866cfc959ce5b6
parent2941181dc8df54297ac3c5cf3c1f4eca97899df5
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.02637 seconds and 4 git commands to generate.