Gabriele Monaco <[email protected]> writes: > After rvgen was refactored to use subparsers, the common options (-a and > -D) were left in the main parser. This meant that they needed to be > called /before/ the subcommand and using them without subcommand was > allowed. This is not the original intent. > > rvgen -D "some description" container -n name > > Define the options as parent in the subparsers to allow them to be used > from both subcommands together with other options. > > rvgen container -n name -D "some description" > > Signed-off-by: Gabriele Monaco <[email protected]>
I didn't know we can do this. Reviewed-by: Nam Cao <[email protected]>
