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

Allow global parsing of non-positionals #12

Open
pvandyken opened this issue Oct 21, 2021 · 0 comments
Open

Allow global parsing of non-positionals #12

pvandyken opened this issue Oct 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@pvandyken
Copy link
Owner

To meet the needs for our current implementation, the argument parse stops looking for Shapes, Flags, and Keywords as soon as it runs out of Positional args and meets a new unidentified argument. This commences the TailArg, and everything thereafter falls into that. It would be good, even for kslurm's needs, to allow global parsing of non-positionals, and only collecting unidentified args into a TailArg.

This will require a 2 pass approach: First one pass ignoring all positionals and aggregating keywords. Then separate out all the non-positionals. Then pass the remaining positionals and unidentified back into the parser for Positional parsing and collection into the TailArg.

@pvandyken pvandyken added the enhancement New feature or request label Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant