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

Add option to allow flags anywhere after last literal argument #395

Merged
merged 5 commits into from
Nov 28, 2022

Conversation

Pablete1234
Copy link
Contributor

This is a proof-of-concept of how the library could support flags being located anywhere in the command, instead of just at the very end.

The code at this time is dirty just but the main point is to open up discussion about do's and don'ts since i'm new to the library, tests are passing (including the newly added ones) and the changes seem to be working as intended, although i'm sure there's missing corners).

Solves #230

@Pablete1234 Pablete1234 marked this pull request as ready for review October 18, 2022 06:39
@Pablete1234 Pablete1234 force-pushed the any-location-flags branch 2 times, most recently from c80d8b7 to f6ca4c8 Compare October 18, 2022 06:43
@Pablete1234
Copy link
Contributor Author

I've cleaned-up the code to a state where it's stable, i'd love to get some reviews or comments regarding it.

@Pablete1234 Pablete1234 requested review from jpenilla and removed request for Citymonstret November 16, 2022 15:57
@Pablete1234 Pablete1234 changed the base branch from master to 1.8.0-dev November 19, 2022 20:03
@Pablete1234 Pablete1234 force-pushed the any-location-flags branch 2 times, most recently from 6305a79 to 4c07994 Compare November 19, 2022 20:04
@jpenilla jpenilla changed the title Support flags in any position Add option to allow flags anywhere after last literal argument Nov 28, 2022
@jpenilla jpenilla merged commit f81972f into Incendo:1.8.0-dev Nov 28, 2022
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.

3 participants