Lines Matching refs:CmdOption
11 pub enum CmdOption { enum
38 impl From<String> for CmdOption { implementation
41 "-c" => CmdOption::Comment, in from()
42 "-d" => CmdOption::Dir, in from()
43 "-G" => CmdOption::Group, in from()
44 "-g" => CmdOption::Gid, in from()
45 "-s" => CmdOption::Shell, in from()
46 "-u" => CmdOption::Uid, in from()
47 "-r" => CmdOption::Remove, in from()
48 "-a" => CmdOption::Append, in from()
49 "-l" => CmdOption::Login, in from()
50 "-p" => CmdOption::Passwd, in from()
51 "-n" => CmdOption::NewGroupName, in from()
52 _ => CmdOption::Invalid, in from()
57 impl From<CmdOption> for &str {
58 fn from(option: CmdOption) -> Self { in from()
60 CmdOption::Comment => "-c", in from()
61 CmdOption::Dir => "-d", in from()
62 CmdOption::Group => "-G", in from()
63 CmdOption::Shell => "-s", in from()
64 CmdOption::Uid => "-u", in from()
65 CmdOption::Login => "-l", in from()
66 CmdOption::Append => "-a", in from()
67 CmdOption::Gid => "-g", in from()
68 CmdOption::NewGroupName => "-n", in from()
69 CmdOption::Passwd => "-p", in from()
70 CmdOption::Remove => "-r", in from()
71 CmdOption::Invalid => "Invalid option", in from()
82 pub options: HashMap<CmdOption, String>,
95 pub options: HashMap<CmdOption, String>,