From: Zbigniew Jędrzejewski-Szmek Date: Thu, 14 May 2026 16:18:24 +0000 (+0200) Subject: core: add --crash-vt= for compat with --help X-Git-Tag: v261-rc1~157^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f51393716f2c4aa59b7741bfb5d7d8b1fc5fd601;p=thirdparty%2Fsystemd.git core: add --crash-vt= for compat with --help Fixes b9e74c399458a1146894ce371e7d85c60658110c. --- diff --git a/src/core/main.c b/src/core/main.c index d990017dedf..9fc2ace1c56 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1026,10 +1026,11 @@ static int parse_argv(int argc, char *argv[]) { return r; break; - OPTION_LONG("crash-chvt", "NR", "Change to specified VT on crash"): + OPTION_LONG("crash-chvt", "NR", "Change to specified VT on crash"): {} + OPTION_LONG("crash-vt", "NR", /* help= */ NULL): /* compat option that was previously documented in --help */ r = parse_crash_chvt(opts.arg, &arg_crash_chvt); if (r < 0) - return log_error_errno(r, "Failed to parse crash virtual terminal index: \"%s\": %m", + return log_error_errno(r, "Failed to parse crash virtual terminal index '%s': %m", opts.arg); break;