peterbourgon / ff

Flags-first package for configuration
Apache License 2.0
1.34k stars 59 forks source link

ffcli/examples: Trying to put -v everywhere, doesn't seems to work #97

Closed batara666 closed 1 year ago

batara666 commented 1 year ago

https://github.com/peterbourgon/ff/tree/main/ffcli/examples/textctl

the verbose are still false

peterbourgon commented 1 year ago

If you want -v to work everywhere, you need to include it as part of every [sub]command's flag.FlagSet. See the other example for an... example of how to do this.