core: add --crash-vt= for compat with --help

Fixes b9e74c3994.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-05-15 09:26:48 +02:00
parent 5597a78df2
commit f51393716f
+3 -2
View File
@@ -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;