← Back to issue list

fix: hide positional arguments with no help

View original Github issue

Metadata

Project
craft-cli
Number
#309
Type
pull request
State
merged
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Merged, resolving issue #308. The change hides positional arguments without help text while preserving them in command syntax. Approved by two reviewers, passed CI checks, and updated three files (+102/-11 lines).

Suggested action:

No scores available.

Issue body

Keep the parsing so they show in the command syntax. - [x] Have you followed the guidelines for contributing? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `tox`? Fixes #308 This is not a hotfix as Snapcraft 8.5 is already using the latest release. The only other item since is the backtick removal.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged, resolving issue #308. The change hides positional arguments without help text while preserving them in command syntax. Approved by two reviewers, passed CI checks, and updated three files (+102/-11 lines).
qwen3.6-35b-a3b-mtp-q6 Merged fix to hide positional arguments without help text while preserving parsing for command syntax display. Resolves issue #308 and aligns with the Snapcraft 8.5 release cycle.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#5178 fix: properly present help when posargs have no help snapcraft merged Merged fix for help display when positional arguments lack descriptions. Approved by two reviewers, passed CI, and applied with minimal changes across four files.
80%
#271 feat: display positional args in help craft-cli merged Merged to display positional arguments in help output. Approved by two reviewers, passed checks, and modified three files with 38 additions and 3 deletions.
77%
#452 fix: don't recommend hidden commands craft-cli merged Merged fix preventing hidden commands from appearing in the 'See also' section of command help text. Resolves issue #449. Approved by two reviewers with all CI checks passing. Modified three files.
74%
#302 fix: don't suggest hidden commands craft-cli merged Merged to resolve issue #297 by preventing hidden command suggestions. Approved by two reviewers, passed CI checks, and updated three files with a +26/-1 line change.
74%
#207 Avoid a duplicated -h/--help option when getting help for a command. charmcraft merged Merged a fix to eliminate duplicate -h/--help options in command help output by disabling ArgumentParser's automatic help flag addition. Existing tests were updated to expose duplicates. Approved by two reviewers and passed CI.
72%
#79 Support a special HIDDEN value in arguments' help to not show them in the help texts. craft-cli merged Merged implementation adding a HIDDEN value to arguments, excluding them from help text. Approved by one reviewer, the change modifies four files (+34/-4) to enable cleaner command-line documentation.
72%