-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
PersistentFlags support #692
Comments
@urfave/cli I think we already can achieve the |
I don't quite grasp the use case, so I'm fine closing this until someone explicitly requests it again. |
I guess this is saving a flag that was set in the previous invocation of the cli |
I believe this is what they're asking for 👍 This seems like a nice feature, but given the age of this issue i'd like to close it until someone requests it again. |
I don't think this should be a problem of this library. Users can implement their own persistence. |
That's not what persistent flags do. A persistent flag is a flag defined in a parent command, that can be use in any of the sub commands without having to repeat the flag in the sub command. These a really useful for common flags like See: https://stackoverflow.com/questions/63495992/what-is-the-difference-between-go-cobra-persistentflags-and-flags for other explanations. |
Something similar to cobra's
PersistentFlag
would be a nice addition to save configuration to files.The text was updated successfully, but these errors were encountered: