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

build: sort.py: use -i by default and add -n #6339

Merged
merged 2 commits into from
May 20, 2024

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented May 13, 2024

Overwrite in-place by default (-i) and add -n to override it.

This restores the previous default behavior (from 0.9.72), for the sake
of being consistent with all previous versions and because it's more
likely to be the desired behavior in most cases.

This amends commit aa08aa1 ("build: sort.py: add and require -i to
edit in-place (#6290)", 2024-03-25).

  • build: sort.py: support "--" and fail on unknown option

Support "--" to end options and fail if an unknown option is given.

kmk3 added 2 commits May 13, 2024 20:15
Overwrite in-place by default (`-i`) and add `-n` to override it.

This restores the previous default behavior (from 0.9.72), for the sake
of being consistent with all previous versions and because it's more
likely to be the desired behavior in most cases.

This amends commit aa08aa1 ("build: sort.py: add and require -i to
edit in-place (netblue30#6290)", 2024-03-25).
Support "--" to end options and fail if an unknown option is given.
@kmk3 kmk3 requested a review from rusty-snake May 13, 2024 23:43
Copy link
Collaborator

@glitsj16 glitsj16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good idea to change the default behavior.

@kmk3 kmk3 merged commit 83469a3 into netblue30:master May 20, 2024
5 checks passed
@kmk3 kmk3 deleted the build-sort-py-n branch May 20, 2024 03:40
kmk3 added a commit that referenced this pull request May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done (on RELNOTES)
Development

Successfully merging this pull request may close these issues.

3 participants