spf13 / pflag

Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
BSD 3-Clause "New" or "Revised" License
2.43k stars 348 forks source link

Make the --version flag work only on the root command #412

Closed kevgo closed 2 months ago

kevgo commented 2 months ago

Right now I can call git town switch --version and it does nothing.