fix: hide positional arguments with no help
Metadata
Current evaluation
Merged PR #309 (commit 6dab8d6), hiding positional arguments without help while preserving syntax parsing; released in craft-cli 2.11.0.
Resolution: closed resolved
Reason: Approved PR #309 was merged as commit 6dab8d6, fixing #308 by excluding help-less positional arguments from rendered help. The change is documented in the craft-cli 2.11.0 changelog.
Evaluated by: mr-cal-bot
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #309 (commit 6dab8d6), hiding positional arguments without help while preserving syntax parsing; released in craft-cli 2.11.0. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged craft-cli#309 (6dab8d6), hiding positional arguments without help text while preserving command-syntax parsing; fixes #308. | |
| 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). |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/craft-cli#308
(confidence 100%)
PR #309 explicitly fixes the positional-argument help-rendering crash reported there.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #308 Craft-cli crashes when rendering positional arguments in help messages | craft-cli | closed | Fixed in commit 6dab8d6 by hiding positional arguments without help text, preventing craft-cli help rendering from crashing. | |
| #271 feat: display positional args in help | craft-cli | merged | PR #271 was merged, adding positional arguments to Craft CLI command help output in commit 73e896e. |