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

flag: fix parsing flag.FlagParser style short flags in to_struct[T] #22172

Merged

Conversation

larpon
Copy link
Contributor

@larpon larpon commented Sep 7, 2024

This PR corrects some misunderstandings about what flags the flag.FlagParser supports.
Before: --s <value>
After: -s <value> (or -s for bool fields)

I decided to rename the style enum from .v_long to the more clear .v_flag_parser - I do not think the .v_long parsing style is much used in the wid used - so breakage in userland should be minimal.

@spytheman spytheman merged commit 620e064 into vlang:master Sep 7, 2024
63 checks passed
@larpon larpon deleted the flag/fix-flag-to_struct-flag-parser-style branch September 7, 2024 12:25
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.

2 participants