Debian Codegraph @

src/su/help.rs

raw symbols SCIP
1 pub const USAGE_MSG: &str = "Usage: su [options] [-] [<user> [<argument>...]]";
2
3 const DESCRIPTOR: &str = "Change the effective user ID and group ID to that of <user>.
4 A mere - implies -l. If <user> is not given, root is assumed.";
5
6 const HELP_MSG: &str = "Options:
7 -m, -p, --preserve-environment do not reset environment variables
8 -w, --whitelist-environment <list> don't reset specified variables
9
10 -g, --group <group> specify the primary group
11 -G, --supp-group <group> specify a supplemental group
12
13 -, -l, --login make the shell a login shell
14 -c, --command <command> pass a single command to the shell with -c
15 -s, --shell <shell> run <shell> if /etc/shells allows it
16 -P, --pty ignored (a pseudo-terminal is always used when possible)
17
18 -h, --help display this help
19 -V, --version display version
20 ";
21
22 pub fn long_help_message() -> String {
23 format!("{USAGE_MSG}\n\n{DESCRIPTOR}\n\n{HELP_MSG}")
24 }