Debian Codegraph @

src/sudo/cli/help_edit.rs

raw symbols SCIP
1 pub fn usage_msg() -> &'static str {
2 xlat!(
3 "\
4 usage: sudoedit -h | -V
5 usage: sudoedit [-BknS] [-p prompt] [-g group] [-u user] file ..."
6 )
7 }
8
9 fn descriptor() -> &'static str {
10 xlat!("sudoedit - edit files as another user")
11 }
12
13 fn help_msg() -> &'static str {
14 xlat!(
15 "Options:
16 -B, --bell ring bell when prompting
17 -g, --group=group run command as the specified group name or ID
18 -h, --help display help message and exit
19 -k, --reset-timestamp invalidate timestamp file
20 -n, --non-interactive non-interactive mode, no prompts are used
21 -p, --prompt=prompt use the specified password prompt
22 -S, --stdin read password from standard input
23 -u, --user=user run command (or edit file) as specified user
24 name or ID
25 -V, --version display version information and exit
26 -- stop processing command line arguments"
27 )
28 }
29
30 pub fn long_help_message() -> String {
31 format!("{}\n{}\n{}", descriptor(), usage_msg(), help_msg())
32 }