Lines Matching refs:ArgSettings
40 impl_settings! {ArgSettings,
77 pub enum ArgSettings { enum
123 impl FromStr for ArgSettings { implementation
127 "required" => Ok(ArgSettings::Required), in from_str()
128 "multiple" => Ok(ArgSettings::Multiple), in from_str()
129 "global" => Ok(ArgSettings::Global), in from_str()
130 "emptyvalues" => Ok(ArgSettings::EmptyValues), in from_str()
131 "hidden" => Ok(ArgSettings::Hidden), in from_str()
132 "takesvalue" => Ok(ArgSettings::TakesValue), in from_str()
133 "usevaluedelimiter" => Ok(ArgSettings::UseValueDelimiter), in from_str()
134 "nextlinehelp" => Ok(ArgSettings::NextLineHelp), in from_str()
135 "requiredunlessall" => Ok(ArgSettings::RequiredUnlessAll), in from_str()
136 "requiredelimiter" => Ok(ArgSettings::RequireDelimiter), in from_str()
137 "valuedelimiternotset" => Ok(ArgSettings::ValueDelimiterNotSet), in from_str()
138 "hidepossiblevalues" => Ok(ArgSettings::HidePossibleValues), in from_str()
139 "allowleadinghyphen" => Ok(ArgSettings::AllowLeadingHyphen), in from_str()
140 "requireequals" => Ok(ArgSettings::RequireEquals), in from_str()
141 "last" => Ok(ArgSettings::Last), in from_str()
142 "hidedefaultvalue" => Ok(ArgSettings::HideDefaultValue), in from_str()
143 "caseinsensitive" => Ok(ArgSettings::CaseInsensitive), in from_str()
144 "hideenvvalues" => Ok(ArgSettings::HideEnvValues), in from_str()
145 "hiddenshorthelp" => Ok(ArgSettings::HiddenShortHelp), in from_str()
146 "hiddenlonghelp" => Ok(ArgSettings::HiddenLongHelp), in from_str()
154 use super::ArgSettings;
159 "allowleadinghyphen".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
160 ArgSettings::AllowLeadingHyphen in arg_settings_fromstr()
163 "emptyvalues".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
164 ArgSettings::EmptyValues in arg_settings_fromstr()
167 "global".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
168 ArgSettings::Global in arg_settings_fromstr()
171 "hidepossiblevalues".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
172 ArgSettings::HidePossibleValues in arg_settings_fromstr()
175 "hidden".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
176 ArgSettings::Hidden in arg_settings_fromstr()
179 "multiple".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
180 ArgSettings::Multiple in arg_settings_fromstr()
183 "nextlinehelp".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
184 ArgSettings::NextLineHelp in arg_settings_fromstr()
187 "requiredunlessall".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
188 ArgSettings::RequiredUnlessAll in arg_settings_fromstr()
191 "requiredelimiter".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
192 ArgSettings::RequireDelimiter in arg_settings_fromstr()
195 "required".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
196 ArgSettings::Required in arg_settings_fromstr()
199 "takesvalue".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
200 ArgSettings::TakesValue in arg_settings_fromstr()
203 "usevaluedelimiter".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
204 ArgSettings::UseValueDelimiter in arg_settings_fromstr()
207 "valuedelimiternotset".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
208 ArgSettings::ValueDelimiterNotSet in arg_settings_fromstr()
211 "requireequals".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
212 ArgSettings::RequireEquals in arg_settings_fromstr()
214 assert_eq!("last".parse::<ArgSettings>().unwrap(), ArgSettings::Last); in arg_settings_fromstr()
216 "hidedefaultvalue".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
217 ArgSettings::HideDefaultValue in arg_settings_fromstr()
220 "caseinsensitive".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
221 ArgSettings::CaseInsensitive in arg_settings_fromstr()
224 "hideenvvalues".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
225 ArgSettings::HideEnvValues in arg_settings_fromstr()
228 "hiddenshorthelp".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
229 ArgSettings::HiddenShortHelp in arg_settings_fromstr()
232 "hiddenlonghelp".parse::<ArgSettings>().unwrap(), in arg_settings_fromstr()
233 ArgSettings::HiddenLongHelp in arg_settings_fromstr()
235 assert!("hahahaha".parse::<ArgSettings>().is_err()); in arg_settings_fromstr()