feat: error early when help message is missing
Metadata
Current evaluation
Raises a command configuration error when help text is missing instead of crashing with an IndexError. Passing CI, awaiting review.
Suggested action: needs review
Reason: This is a fresh PR (7 days old) with passing CI but zero reviewers and no comments. It addresses issue #242 by guarding against unhelpful IndexError crashes when command arguments lack help text. The change is small (+52/-50 lines, 2 files) and focused, so it needs maintainer review to proceed.
Impact:
50
Quick Win:
42.5
Staleness:
10
Complexity:
15
Confidence:
75
Issue body
Raise a command configuration error on help generation instead of
allowing the help flow to fail later.
Fixes #242
- [ ] Have you followed the guidelines for contributing?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint && make test`?
---
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
50
Quick Win:
42.5
Staleness:
10
Complexity:
15
Confidence:
75
|
needs review | Raises a command configuration error when help text is missing instead of crashing with an IndexError. Passing CI, awaiting review. |
Update history
| Date | Change |
|---|---|
| updated | |
| updated | |
| created |
Related work
-
Related To:
craft-cli#242
(confidence 95%)
This PR is explicitly referenced in issue #242 as the fix for the unhelpful IndexError when creating help if an argument lacks help text.
Related issues
No related issues found above the similarity threshold.