1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-03 01:17:45 +03:00

tty-ask-password-agent: mention optional argument in help

0cf8469387 added --console.
6af621248f added an optional argument, but didn't
update the help texts.

Note that there is no ambiguity with the optional argument because no positional
arguments are allowed.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-05-23 09:52:56 +02:00
parent d65c5d04f9
commit af88c399c0
2 changed files with 13 additions and 12 deletions

View File

@ -92,11 +92,11 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>--console</option></term> <term><option>--console</option><optional>=<replaceable>DEVICE</replaceable></optional></term>
<listitem><para>Ask question on <listitem><para>Ask question on TTY <replaceable>DEVICE</replaceable> instead of querying the user on
<filename>/dev/console</filename> instead of querying the user the calling TTY. If <replaceable>DEVICE</replaceable> is not specified,
on the calling TTY. </para></listitem> <filename>/dev/console</filename> will be used.</para></listitem>
</varlistentry> </varlistentry>
<xi:include href="standard-options.xml" xpointer="help" /> <xi:include href="standard-options.xml" xpointer="help" />

View File

@ -412,14 +412,15 @@ static int help(void) {
printf("%s [OPTIONS...]\n\n" printf("%s [OPTIONS...]\n\n"
"Process system password requests.\n\n" "Process system password requests.\n\n"
" -h --help Show this help\n" " -h --help Show this help\n"
" --version Show package version\n" " --version Show package version\n"
" --list Show pending password requests\n" " --list Show pending password requests\n"
" --query Process pending password requests\n" " --query Process pending password requests\n"
" --watch Continuously process password requests\n" " --watch Continuously process password requests\n"
" --wall Continuously forward password requests to wall\n" " --wall Continuously forward password requests to wall\n"
" --plymouth Ask question with Plymouth instead of on TTY\n" " --plymouth Ask question with Plymouth instead of on TTY\n"
" --console Ask question on /dev/console instead of current TTY\n" " --console[=DEVICE] Ask question on /dev/console (or DEVICE if specified)\n"
" instead of the current TTY\n"
"\nSee the %s for details.\n", "\nSee the %s for details.\n",
program_invocation_short_name, program_invocation_short_name,
link); link);