ArgumentParsingError for command not found should hint at the command that raised it
Metadata
Current evaluation
Feature request to add the offending command name as an attribute on ArgumentParsingError raised for unknown commands, enabling programmatic error handling. Still unimplemented in current code.
Suggested action: needs triage
Reason: Filed by maintainer sergiusens ~4 years ago with zero comments, no labels, and no assignee. The ArgumentParsingError class in craft_cli/errors.py still has no command attribute, and dispatcher.py line 564 still raises it with only a help-text string, so the feature remains unimplemented. No evidence of any related PR or issue addressing it.
Impact:
25
Quick Win:
21.25
Staleness:
72
Complexity:
15
Confidence:
85
Support Request:
10
Issue body
If the error class had an attribute with the command that raised it we could do more advanced error handling.
Right now I am looking into doing it this way:
```python
try:
cmd.run(...)
except ArgumentParsingError as err:
if err.__context__.args[0] not in dispatcher.commands.keys():
do_something()
else:
raise
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
25
Quick Win:
21.25
Staleness:
72
Complexity:
15
Confidence:
85
Support Request:
10
|
needs triage | Feature request to add the offending command name as an attribute on ArgumentParsingError raised for unknown commands, enabling programmatic error handling. Still unimplemented in current code. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
15
Confidence:
85
Support Request:
5
|
close stale | Request to add a command attribute to ArgumentParsingError for improved error handling. The issue is unlabelled, has zero maintainer comments, and has been inactive for over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
15
Confidence:
75
Support Request:
5
|
needs triage | Feature request to add a command attribute to ArgumentParsingError for improved error handling. Unlabelled, zero comments, and inactive for over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
90
Complexity:
10
Confidence:
80
Support Request:
0
|
close stale | Add a command attribute to ArgumentParsingError for better error handling. Open with zero comments and inactive for over a year. Needs triage and assignment to implement. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.