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

Fix:(issue_976) All positional args and flags to be mixed in any order #1987

Merged
merged 8 commits into from
Oct 19, 2024

Conversation

dearchap
Copy link
Contributor

What type of PR is this?

(REQUIRED)

  • feature

What this PR does / why we need it:

(REQUIRED)

Working towards making positions arguments and flags interchangeable

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #976
Fixes #1928
Fixes #1733

Special notes for your reviewer:

(fill-in or delete this section)

Focus on command.parseFlags which has the logic

Testing

(fill-in or delete this section)

All tests have been updated to ensure they work

Release Notes

(REQUIRED)

Allows positions args and flags to be placed in any order

@dearchap dearchap requested a review from a team as a code owner October 14, 2024 11:41
@dearchap dearchap changed the title Pos args flags mix Fix:(issue_976) All positional args and flags to be mixed in any order Oct 14, 2024
command.go Outdated Show resolved Hide resolved
@dearchap dearchap requested a review from BlackHole1 October 14, 2024 14:34
command_test.go Outdated Show resolved Hide resolved
command_test.go Outdated Show resolved Hide resolved
@dearchap dearchap requested review from BlackHole1 and a team October 16, 2024 10:45
command_test.go Outdated Show resolved Hide resolved
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.

Ordering of arguments and flags impact one another v2 feature: allow flags after arguments
3 participants