Commit c850a57
fix: make -m/--mode a required argument
When no -m flag is provided, args.mode is None (since action='append'
defaults to None). This causes a TypeError in print_summary() which
iterates over args.mode.
Mark the argument as required=True so argparse emits a clear usage
error instead of crashing with an unhelpful traceback. Also remove
"[default]" from the help text for mode 0 since there is no longer
a default.
Fixes #32
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 4371e0d commit c850a57
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
0 commit comments