Skip to content

Commit 3e5409a

Browse files
committed
nit: add missing help/usage for --prompt
1 parent 299eff5 commit 3e5409a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/sudo/cli/help.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
pub const USAGE_MSG: &str = "\
22
usage: sudo -h | -K | -k | -V
3-
usage: sudo -v [-BknS] [-g group] [-u user]
4-
usage: sudo -l [-BknS] [-g group] [-U user] [-u user] [command [arg ...]]
5-
usage: sudo [-BknS] [-D directory] [-g group] [-u user] [-i | -s] [command [arg ...]]
6-
usage: sudo -e [-BknS] [-D directory] [-g group] [-u user] file ...";
3+
usage: sudo [-BknS] [-p prompt] [-D directory] [-g group] [-u user] [-i | -s] [command [arg ...]]
4+
usage: sudo -v [-BknS] [-p prompt] [-g group] [-u user]
5+
usage: sudo -l [-BknS] [-p prompt] [-g group] [-U user] [-u user] [command [arg ...]]
6+
usage: sudo -e [-BknS] [-p prompt] [-D directory] [-g group] [-u user] file ...";
77

88
const DESCRIPTOR: &str = "sudo - run commands as another user";
99

@@ -17,6 +17,7 @@ const HELP_MSG: &str = "Options:
1717
-k, --reset-timestamp invalidate timestamp file
1818
-l, --list list user's privileges or check a specific command; use twice for longer format
1919
-n, --non-interactive non-interactive mode, no prompts are used
20+
-p, --prompt=prompt use the specified password prompt
2021
-S, --stdin read password from standard input
2122
-s, --shell run shell as the target user; a command may also be specified
2223
-U, --other-user=user in list mode, display privileges for user

0 commit comments

Comments
 (0)