You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./cli --version
print: "v0.1.0"
./cli sub --version
print: "unknown flag --version" and exit
./cli sub --help
hide --version flag
Is there any way to achieve this: --version is not inherited to subcommands?
Or is it possible to have a tag like "parent-only" to make that flags are not inherited by subcommands?
The text was updated successfully, but these errors were encountered:
My demo code is like this:
I want to do something like this:
Is there any way to achieve this: --version is not inherited to subcommands?
Or is it possible to have a tag like "parent-only" to make that flags are not inherited by subcommands?
The text was updated successfully, but these errors were encountered: