Debian Codegraph @

src/su/help.rs

raw symbols SCIP
1 pub const USAGE_MSGrust-analyzer cargo sudo-rs 0.2.14 su/help/USAGE_MSG.: &str = "Usage: su [options] [-] [<user> [<argument>...]]";
2
3 const DESCRIPTORrust-analyzer cargo sudo-rs 0.2.14 su/help/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_MSGrust-analyzer cargo sudo-rs 0.2.14 su/help/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_messagerust-analyzer cargo sudo-rs 0.2.14 su/help/long_help_message().() -> Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String# {
23 formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("{USAGE_MSG}\n\n{DESCRIPTOR}\n\n{HELP_MSG}")
24 }