Skip to content

Enhancement: Need a global --help (-h) flag to show the help information shown when the 'help` command is selected #71

Open

Description

@kcq

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.

Activity

  1. Bharadwajshivam28 commented on Nov 1, 2024

    @Bharadwajshivam28

    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

  2. kcq commented on Nov 1, 2024

    @kcq
    ContributorAuthor

    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.

  3. ernstvonoelsen commented on Apr 14, 2025

    @ernstvonoelsen
    Contributor

    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 gpgme package; I had to fix this locally to get tests green eventually, so maybe your runners need an update too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions