Skip to content

cmd: Append subcommands help into badge help message #524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

umatare5
Copy link
Contributor

@umatare5 umatare5 commented Aug 9, 2025

WHAT

This PR updates the Use field of the badge command to explicitly include the required subcommand names.
This makes the help output display the required argument for the first time, improving clarity for users.

Before:

❯ go run main.go badge --help
generate badge.

Usage:
  octocov badge [flags]

Flags:
      --config string   config file path
  -h, --help            help for badge
      --out string      output file path

After:

❯ go run main.go badge --help
generate badge.

Usage:
  octocov badge <coverage|ratio|time> [flags]

Flags:
      --config string   config file path
  -h, --help            help for badge
      --out string      output file path

WHY

@umatare5 umatare5 changed the title cmd: refactor badge into subcommands; helpers, same behavior cmd: Append subcommands help into badge help message Aug 9, 2025
@k1LoW
Copy link
Owner

k1LoW commented Aug 9, 2025

Thank you!

@k1LoW k1LoW closed this Aug 9, 2025
@umatare5 umatare5 deleted the umatare5/patch-1 branch August 9, 2025 14:22
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.

2 participants