Skip to content

Conversation

@ernstvonoelsen
Copy link
Contributor

Fixes-71

What

Defines a global --help/-h flag.

Why

Currently, mint h and mint help are implemented to show the help info. When using mint -h or mint --help, the help message is only shown due to the fact that --help is actually not supported, and this is highlighted by a FATAL error message.

How Tested

  • built and run locally
  • added a unittest to ensure that --help/-h behaves in the same error-free manner as --verbose/-v.

@augmentcode
Copy link

augmentcode bot commented Jan 10, 2026

🤖 Augment PR Summary

Summary: Adds a global --help/-h flag so mint --help works cleanly even with the custom help command.
Changes: Introduces the global help flag in master CLI flags and adds a small CLI smoke test covering version/help invocations.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.


runArgs := [][]string{
{"mint", "--version"},
{"mint", "-v"},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test covers -h but not --help, which is the primary behavior change described in the PR. Also, -v is the built-in alias for --version in urfave/cli, so it doesn’t validate --verbose behavior.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant