Skip to content

Promote -q/-v flags to -h basic help display - #1

Open
tats-u with Copilot wants to merge 3 commits into
devfrom
copilot/refactor-flag-help-display
Open

tats-u with Copilot wants to merge 3 commits into
devfrom
copilot/refactor-flag-help-display

Conversation

Copilot AI commented Mar 22, 2026 •

Copy link
Copy Markdown

Promotes -q/--quiet and -v/--verbose from the advanced help (-H) to the basic help (-h), matching the convention of gzip, bzip2, and xz where -q and -v are grouped together before -h/-H/-V.

This was originally proposed in facebook/zstd#4619 but only -c was merged; -q was deferred due to scope concerns about keeping it paired with -v. This PR promotes both together, resolving that concern.

  • Move -q and -v from usageAdvanced() into usage(), placed after -f/--force and before the help/version block
  • Update tests/cli-tests/basic/help.sh.stdout.glob to match
  -f, --force       ...
  -q, --quiet       Suppress warnings; pass twice to suppress errors.
  -v, --verbose     Enable verbose output; pass multiple times to increase verbosity.

  -h                Display short usage and exit.
  -H, --help        Display full help and exit.
  -V, --version     Display the program version and exit.

⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

Copilot AI changed the title [WIP] Update -q flag to work with -h help display Promote -q/--quiet from -H advanced help to -h basic help Mar 22, 2026
Copilot AI requested a review from tats-u March 22, 2026 01:17
Copilot AI changed the title Promote -q/--quiet from -H advanced help to -h basic help Promote -q/-v flags to -h basic help display Mar 22, 2026
@tats-u
tats-u marked this pull request as ready for review March 22, 2026 14:30
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