]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tty-ask-password-agent: mention optional argument in help
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 23 May 2021 07:52:56 +0000 (09:52 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 31 May 2021 17:22:51 +0000 (19:22 +0200)
0cf84693877f060254f04cf38120f52c2aa3059c added --console.
6af621248f2255f9ce50b0bafdde475305dc4e57 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.

man/systemd-tty-ask-password-agent.xml
src/tty-ask-password-agent/tty-ask-password-agent.c

index 995657683b663e33cb06c0faf0f09bfe1b864716..5c0011ec435d221c9f39ef284bf9745b78232e42 100644 (file)
       </varlistentry>
 
       <varlistentry>
-        <term><option>--console</option></term>
+        <term><option>--console</option><optional>=<replaceable>DEVICE</replaceable></optional></term>
 
-        <listitem><para>Ask question on
-        <filename>/dev/console</filename> instead of querying the user
-        on the calling TTY. </para></listitem>
+        <listitem><para>Ask question on TTY <replaceable>DEVICE</replaceable> instead of querying the user on
+        the calling TTY. If <replaceable>DEVICE</replaceable> is not specified,
+        <filename>/dev/console</filename> will be used.</para></listitem>
       </varlistentry>
 
       <xi:include href="standard-options.xml" xpointer="help" />
index e056853f31293b32feaf56d1949e34ef9ac1d299..e7d3a5dbc9deefaa6d49887c884eee3954c4c422 100644 (file)
@@ -412,14 +412,15 @@ static int help(void) {
 
         printf("%s [OPTIONS...]\n\n"
                "Process system password requests.\n\n"
-               "  -h --help     Show this help\n"
-               "     --version  Show package version\n"
-               "     --list     Show pending password requests\n"
-               "     --query    Process pending password requests\n"
-               "     --watch    Continuously process password requests\n"
-               "     --wall     Continuously forward password requests to wall\n"
-               "     --plymouth Ask question with Plymouth instead of on TTY\n"
-               "     --console  Ask question on /dev/console instead of current TTY\n"
+               "  -h --help              Show this help\n"
+               "     --version           Show package version\n"
+               "     --list              Show pending password requests\n"
+               "     --query             Process pending password requests\n"
+               "     --watch             Continuously process password requests\n"
+               "     --wall              Continuously forward password requests to wall\n"
+               "     --plymouth          Ask question with Plymouth instead of on 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",
                program_invocation_short_name,
                link);