Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inheritable flags. (Feature Request) #100

Open
codefriar opened this issue Dec 12, 2020 · 0 comments
Open

Inheritable flags. (Feature Request) #100

codefriar opened this issue Dec 12, 2020 · 0 comments

Comments

@codefriar
Copy link

I'd really love a way to have child commands inherit flags from their parent.

For instance:

myCli
parentCommand
-c flag
fooCommand understands -c, even though it's defined on parentCommand.

This would be useful for defining common command line params to an entire 'namespace'.
Another example: a 'config' namespace / parent command has a common flag -f for config file that config set and config get could both use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant