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

Support --foo=bar syntax #98

Merged
merged 3 commits into from
Sep 16, 2023
Merged

Support --foo=bar syntax #98

merged 3 commits into from
Sep 16, 2023

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Sep 16, 2023

Fixes #97

Relatively straightforward change. We do head.split("=", 2) match to see if it contains any =, and if so treat the portion of the string after the first = as the value. Added some unit test to cover both success cases and failure cases: use with short names or with flags is unsupported.

@lihaoyi lihaoyi merged commit b25a9fb into main Sep 16, 2023
4 checks passed
@lihaoyi lihaoyi deleted the gflags branch September 16, 2023 14:29
@lefou lefou added this to the 0.5.3 milestone Jan 26, 2024
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.

long arg like --foo should support --foo=bar style command flag
2 participants