Re: [PATCH v2 06/14] verification/rvgen: Fix options shared among commands
From: Nam Cao
Date: Mon May 18 2026 - 04:52:02 EST
Gabriele Monaco <gmonaco@xxxxxxxxxx> 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 <gmonaco@xxxxxxxxxx>
I didn't know we can do this.
Reviewed-by: Nam Cao <namcao@xxxxxxxxxxxxx>