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 aa08aa132 ("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.
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 aa08aa132 ("build: sort.py: add and require -i to edit in-place (#6290)", 2024-03-25).
Support "--" to end options and fail if an unknown option is given.