Cli: PersistentFlags support

Created on 11 Dec 2017  路  5Comments  路  Source: urfave/cli

Something similar to cobra's PersistentFlag would be a nice addition to save configuration to files.

kinfeature statuuser-feedback-required

All 5 comments

@urfave/cli

I think we already can achieve the PersistentFlag functionality through the global lookup functions in the cli context. Does any of you have any other use case in mind or can we close this?

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 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LeonB picture LeonB  路  5Comments

renzhengeek picture renzhengeek  路  5Comments

kklipsch picture kklipsch  路  6Comments

blackrez picture blackrez  路  5Comments

costela picture costela  路  5Comments