Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: loosen character restrictions on flags #40

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

murtyjones
Copy link

@murtyjones murtyjones commented Dec 11, 2024

Loosens the regex used for flag pattern matching to allow:

  • Periods
  • Underscores
  • Digits

...which enables flags like --foo.bar, --foo123, and --foo_bar.

@murtyjones murtyjones requested a review from a team as a code owner December 11, 2024 18:49
@murtyjones murtyjones force-pushed the mj/allow-multipart-flags branch from df52643 to e6e6973 Compare December 11, 2024 18:52
@murtyjones murtyjones force-pushed the mj/allow-multipart-flags branch from e6e6973 to b5c7e4e Compare December 11, 2024 19:57
@murtyjones murtyjones requested a review from molisani December 12, 2024 16:50
@murtyjones murtyjones force-pushed the mj/allow-multipart-flags branch from b5c7e4e to fcf920c Compare December 12, 2024 17:15
Copy link
Member

@molisani molisani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Could you change the commit/title to some verbiage that indicates the pattern for flags was loosened? (something like that)

@murtyjones murtyjones force-pushed the mj/allow-multipart-flags branch from fcf920c to b25c76e Compare December 12, 2024 17:25
@murtyjones murtyjones changed the title fix: allow multipart flags fix: loosen character restrictions on flags Dec 12, 2024
Loosens the regex used for flag pattern matching to allow:

- Periods
- Underscores
- Digits

...which enables flags like `--foo.bar`, `--foo123`, and `--foo_bar`.

Signed-off-by: Marty Jones <mjones721@bloomberg.net>
@murtyjones murtyjones force-pushed the mj/allow-multipart-flags branch from b25c76e to 1baa426 Compare December 12, 2024 17:25
@murtyjones murtyjones requested a review from molisani December 12, 2024 17:25
@molisani molisani added the core ⚙ Relates to the @stricli/core package label Dec 12, 2024
@molisani
Copy link
Member

It looks like something's wrong with the auto-label workflow, but that isn't a blocker for this PR.

@molisani molisani merged commit 2088ffd into bloomberg:main Dec 12, 2024
2 of 3 checks passed
@murtyjones murtyjones deleted the mj/allow-multipart-flags branch December 12, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core ⚙ Relates to the @stricli/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants