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

Accept inserting subcommand-independent flags in any position #329

Closed
wants to merge 0 commits into from

Conversation

marcospb19
Copy link
Member

@marcospb19 marcospb19 commented Dec 24, 2022

This PR allows all flags that are not required by a specific
subcommand to be inserted in any position.

Before this PR:

ouch --quiet compress ... # This works
ouch compress --quiet ... # This does not work
ouch compress ... --quiet # This does not work

After this PR:
--quiet is accepted on any position.

This also affects --hidden and --gitignore.

EDIT: I forgot the changelog...

@figsoda figsoda closed this Dec 24, 2022
@figsoda figsoda deleted the make-flags-positions-global branch December 24, 2022 17:20
@figsoda
Copy link
Member

figsoda commented Dec 24, 2022

github bugged out, this is merged: 6da32c4

figsoda added a commit to figsoda/ouch that referenced this pull request Jan 3, 2023
…obal

Accept inserting subcommand-independent flags in any position
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