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

Update ArgLenAt Dash to search for first option with single dash instead of only double dash #2100

Open
mpuckett159 opened this issue Jan 19, 2024 · 0 comments

Comments

@mpuckett159
Copy link

mpuckett159 commented Jan 19, 2024

ArgLentAtDash currently only looks for the first instance of -- for an option (ie. only for "long" options) and I believe that this functionality should work for - as well, since the intention is to find the first instance of an option passed by the CLI, not just the first "long" option. For compatibility this should probably be a new function since it would have a lot of downstream implications probably. I'm happy to make the change but I wanted to see if this is something that would be accepted before writing the code.

Originally I wanted to make this change in the pflag repo but it's been 3.5 years since the last update on main so I figured I'd ask here since it seems more active.

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

No branches or pull requests

1 participant