]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: reorder switch cases to match help() output order
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Mon, 27 Apr 2026 21:58:24 +0000 (23:58 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 28 Apr 2026 15:13:24 +0000 (17:13 +0200)
commitff902c7ccda2165f7c33231a0174384f0d1331b7
tree99383189f520cd32bb640f68bd423644c0cc0268
parent1600978f5fc7ad0402d69e7d65c890fc5b10f9f4
run: reorder switch cases to match help() output order

Both parse_argv() and parse_argv_sudo_mode() handled options in an
order that no longer matched the help text. Reorder the case statements
so the source order mirrors what the user sees in --help.

In parse_argv_sudo_mode(), drop the case 'i' → ARG_VIA_SHELL fall-through
so the cases can be sequenced independently; 'i' now sets arg_via_shell
directly.

Co-developed-by: Claude Opus 4.7 <noreply@anthropic.com>
src/run/run.c