Skip to content

feat: relax flag character restrictions to follow Python's optparse convention#54

Merged
trevorld merged 1 commit into
masterfrom
digit-flags
Mar 27, 2026
Merged

feat: relax flag character restrictions to follow Python's optparse convention#54
trevorld merged 1 commit into
masterfrom
digit-flags

Conversation

@trevorld

Copy link
Copy Markdown
Owner

Allow non-letter characters in short flags (e.g. -1) and at the start of long flags (e.g. --1flag). Disallow = and whitespace in both short and long flags, as these would cause parsing ambiguity or failure.

…onvention

Allow non-letter characters in short flags (e.g. `-1`) and at the start
of long flags (e.g. `--1flag`). Disallow `=` and whitespace in both
short and long flags, as these would cause parsing ambiguity or failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@trevorld
trevorld merged commit 201a51f into master Mar 27, 2026
5 checks passed
@trevorld
trevorld deleted the digit-flags branch March 27, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant