You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhancement: Need a global --help (-h) flag to show the help information shown when the 'help` command is selected #71
Right now running mint -h or mint --help prints this error: Incorrect Usage: flag: help requested. We need to handle these use cases properly. For that we need to define an extra global flag to handle --help (with -h as an alias) and print the same info when mint help is typed. This would be similar to what happens with the global --version flag.
Hey @kcq now when I run mint -h or mint --help I get the same result as mint help but it gives incorrect flag. so we need to define an extra global flag to handle --help with -h as an alias. If it good to go then I am taking this issue.
I think the file to handle this is vendor/github.com/spf13/pflag/flag.go
The spf13/pflag library is an indirect dependency and it's not used by the app itself. The CLI commands and flags are handled with the urfave/cli library.
Feel free to work on the enhancement. If you have any questions add them here.
I didn't want to hijack this topic with my PR, hope that nobody feels offended for this.
@kcq the runners of the test workflow seem to lack the gpgme package; I had to fix this locally to get tests green eventually, so maybe your runners need an update too
Activity
Bharadwajshivam28 commentedon Nov 1, 2024
Hey @kcq now when I run
mint -hormint --helpI get the same result asmint helpbut it gives incorrect flag. so we need to define an extra global flag to handle --help with -h as an alias. If it good to go then I am taking this issue.I think the file to handle this is
vendor/github.com/spf13/pflag/flag.gokcq commentedon Nov 1, 2024
The
spf13/pflaglibrary is an indirect dependency and it's not used by the app itself. The CLI commands and flags are handled with theurfave/clilibrary.Feel free to work on the enhancement. If you have any questions add them here.
ernstvonoelsen commentedon Apr 14, 2025
Hi @kcq @Bharadwajshivam28
I didn't want to hijack this topic with my PR, hope that nobody feels offended for this.
@kcq the runners of the test workflow seem to lack the
gpgmepackage; I had to fix this locally to get tests green eventually, so maybe your runners need an update too