• Home
  • Raw
  • Download

Lines Matching full:help

13     Help,  enumerator
55 b'\'' => self.help(&mut arg), in parse()
198 fn help(&mut self, arg: &mut Arg<'a, 'a>) { in help() method
199 debugln!("UsageParser::help;"); in help()
204 "UsageParser::help: setting help...{}", in help()
207 arg.b.help = Some(&self.usage[self.start..self.pos]); in help()
209 self.prev = UsageToken::Help; in help()
240 let a = Arg::from_usage("[flag] -f 'some help info'"); in create_flag_usage()
244 assert_eq!(a.b.help.unwrap(), "some help info"); in create_flag_usage()
249 let b = Arg::from_usage("[flag] --flag 'some help info'"); in create_flag_usage()
253 assert_eq!(b.b.help.unwrap(), "some help info"); in create_flag_usage()
258 let b = Arg::from_usage("--flag 'some help info'"); in create_flag_usage()
262 assert_eq!(b.b.help.unwrap(), "some help info"); in create_flag_usage()
267 let c = Arg::from_usage("[flag] -f --flag 'some help info'"); in create_flag_usage()
271 assert_eq!(c.b.help.unwrap(), "some help info"); in create_flag_usage()
276 let d = Arg::from_usage("[flag] -f... 'some help info'"); in create_flag_usage()
280 assert_eq!(d.b.help.unwrap(), "some help info"); in create_flag_usage()
285 let e = Arg::from_usage("[flag] -f --flag... 'some help info'"); in create_flag_usage()
289 assert_eq!(e.b.help.unwrap(), "some help info"); in create_flag_usage()
294 let e = Arg::from_usage("-f --flag... 'some help info'"); in create_flag_usage()
298 assert_eq!(e.b.help.unwrap(), "some help info"); in create_flag_usage()
329 let a = Arg::from_usage("-f 'some help info'"); in create_flag_usage()
333 assert_eq!(a.b.help.unwrap(), "some help info"); in create_flag_usage()
355 let a = Arg::from_usage("[option] -o [opt] 'some help info'"); in create_option_usage0()
359 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage0()
372 let b = Arg::from_usage("-o [opt] 'some help info'"); in create_option_usage1()
376 assert_eq!(b.b.help.unwrap(), "some help info"); in create_option_usage1()
389 let c = Arg::from_usage("<option> -o <opt> 'some help info'"); in create_option_usage2()
393 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage2()
406 let d = Arg::from_usage("-o <opt> 'some help info'"); in create_option_usage3()
410 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_usage3()
423 let a = Arg::from_usage("[option] -o [opt]... 'some help info'"); in create_option_usage4()
427 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage4()
440 let a = Arg::from_usage("[option]... -o [opt] 'some help info'"); in create_option_usage5()
444 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage5()
457 let b = Arg::from_usage("-o [opt]... 'some help info'"); in create_option_usage6()
461 assert_eq!(b.b.help.unwrap(), "some help info"); in create_option_usage6()
474 let c = Arg::from_usage("<option> -o <opt>... 'some help info'"); in create_option_usage7()
478 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage7()
491 let c = Arg::from_usage("<option>... -o <opt> 'some help info'"); in create_option_usage8()
495 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage8()
508 let d = Arg::from_usage("-o <opt>... 'some help info'"); in create_option_usage9()
512 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_usage9()
525 let a = Arg::from_usage("[option] --opt [opt] 'some help info'"); in create_option_usage_long1()
529 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage_long1()
542 let b = Arg::from_usage("--opt [option] 'some help info'"); in create_option_usage_long2()
546 assert_eq!(b.b.help.unwrap(), "some help info"); in create_option_usage_long2()
559 let c = Arg::from_usage("<option> --opt <opt> 'some help info'"); in create_option_usage_long3()
563 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage_long3()
576 let d = Arg::from_usage("--opt <option> 'some help info'"); in create_option_usage_long4()
580 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_usage_long4()
593 let a = Arg::from_usage("[option] --opt [opt]... 'some help info'"); in create_option_usage_long5()
597 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage_long5()
610 let a = Arg::from_usage("[option]... --opt [opt] 'some help info'"); in create_option_usage_long6()
614 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage_long6()
627 let b = Arg::from_usage("--opt [option]... 'some help info'"); in create_option_usage_long7()
631 assert_eq!(b.b.help.unwrap(), "some help info"); in create_option_usage_long7()
644 let c = Arg::from_usage("<option> --opt <opt>... 'some help info'"); in create_option_usage_long8()
648 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage_long8()
661 let c = Arg::from_usage("<option>... --opt <opt> 'some help info'"); in create_option_usage_long9()
665 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage_long9()
678 let d = Arg::from_usage("--opt <option>... 'some help info'"); in create_option_usage_long10()
682 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_usage_long10()
695 let a = Arg::from_usage("[option] --opt=[opt] 'some help info'"); in create_option_usage_long_equals1()
699 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage_long_equals1()
712 let b = Arg::from_usage("--opt=[option] 'some help info'"); in create_option_usage_long_equals2()
716 assert_eq!(b.b.help.unwrap(), "some help info"); in create_option_usage_long_equals2()
729 let c = Arg::from_usage("<option> --opt=<opt> 'some help info'"); in create_option_usage_long_equals3()
733 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage_long_equals3()
746 let d = Arg::from_usage("--opt=<option> 'some help info'"); in create_option_usage_long_equals4()
750 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_usage_long_equals4()
763 let a = Arg::from_usage("[option] --opt=[opt]... 'some help info'"); in create_option_usage_long_equals5()
767 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage_long_equals5()
780 let a = Arg::from_usage("[option]... --opt=[opt] 'some help info'"); in create_option_usage_long_equals6()
784 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage_long_equals6()
797 let b = Arg::from_usage("--opt=[option]... 'some help info'"); in create_option_usage_long_equals7()
801 assert_eq!(b.b.help.unwrap(), "some help info"); in create_option_usage_long_equals7()
814 let c = Arg::from_usage("<option> --opt=<opt>... 'some help info'"); in create_option_usage_long_equals8()
818 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage_long_equals8()
831 let c = Arg::from_usage("<option>... --opt=<opt> 'some help info'"); in create_option_usage_long_equals9()
835 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage_long_equals9()
848 let d = Arg::from_usage("--opt=<option>... 'some help info'"); in create_option_usage_long_equals10()
852 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_usage_long_equals10()
865 let a = Arg::from_usage("[option] -o --opt [option] 'some help info'"); in create_option_usage_both1()
869 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage_both1()
882 let b = Arg::from_usage("-o --opt [option] 'some help info'"); in create_option_usage_both2()
886 assert_eq!(b.b.help.unwrap(), "some help info"); in create_option_usage_both2()
899 let c = Arg::from_usage("<option> -o --opt <opt> 'some help info'"); in create_option_usage_both3()
903 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage_both3()
916 let d = Arg::from_usage("-o --opt <option> 'some help info'"); in create_option_usage_both4()
920 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_usage_both4()
933 let a = Arg::from_usage("[option]... -o --opt [option] 'some help info'"); in create_option_usage_both5()
937 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage_both5()
950 let b = Arg::from_usage("-o --opt [option]... 'some help info'"); in create_option_usage_both6()
954 assert_eq!(b.b.help.unwrap(), "some help info"); in create_option_usage_both6()
967 let c = Arg::from_usage("<option>... -o --opt <opt> 'some help info'"); in create_option_usage_both7()
971 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage_both7()
984 let d = Arg::from_usage("-o --opt <option>... 'some help info'"); in create_option_usage_both8()
988 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_usage_both8()
1001 let a = Arg::from_usage("[option] -o --opt=[option] 'some help info'"); in create_option_usage_both_equals1()
1005 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage_both_equals1()
1018 let b = Arg::from_usage("-o --opt=[option] 'some help info'"); in create_option_usage_both_equals2()
1022 assert_eq!(b.b.help.unwrap(), "some help info"); in create_option_usage_both_equals2()
1035 let c = Arg::from_usage("<option> -o --opt=<opt> 'some help info'"); in create_option_usage_both_equals3()
1039 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage_both_equals3()
1052 let d = Arg::from_usage("-o --opt=<option> 'some help info'"); in create_option_usage_both_equals4()
1056 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_usage_both_equals4()
1069 let a = Arg::from_usage("[option]... -o --opt=[option] 'some help info'"); in create_option_usage_both_equals5()
1073 assert_eq!(a.b.help.unwrap(), "some help info"); in create_option_usage_both_equals5()
1086 let b = Arg::from_usage("-o --opt=[option]... 'some help info'"); in create_option_usage_both_equals6()
1090 assert_eq!(b.b.help.unwrap(), "some help info"); in create_option_usage_both_equals6()
1103 let c = Arg::from_usage("<option>... -o --opt=<opt> 'some help info'"); in create_option_usage_both_equals7()
1107 assert_eq!(c.b.help.unwrap(), "some help info"); in create_option_usage_both_equals7()
1120 let d = Arg::from_usage("-o --opt=<option>... 'some help info'"); in create_option_usage_both_equals8()
1124 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_usage_both_equals8()
1137 let d = Arg::from_usage("-o <file> <mode> 'some help info'"); in create_option_with_vals1()
1141 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_with_vals1()
1154 let d = Arg::from_usage("-o <file> <mode>... 'some help info'"); in create_option_with_vals2()
1158 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_with_vals2()
1171 let d = Arg::from_usage("--opt <file> <mode>... 'some help info'"); in create_option_with_vals3()
1175 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_with_vals3()
1188 let d = Arg::from_usage("[myopt] --opt <file> <mode> 'some help info'"); in create_option_with_vals4()
1192 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_with_vals4()
1205 let d = Arg::from_usage("--opt <file> <mode> 'some help info'"); in create_option_with_vals5()
1209 assert_eq!(d.b.help.unwrap(), "some help info"); in create_option_with_vals5()
1218 let a = Arg::from_usage("[pos] 'some help info'"); in create_positional_usage()
1220 assert_eq!(a.b.help.unwrap(), "some help info"); in create_positional_usage()
1229 let b = Arg::from_usage("<pos> 'some help info'"); in create_positional_usage0()
1231 assert_eq!(b.b.help.unwrap(), "some help info"); in create_positional_usage0()
1240 let c = Arg::from_usage("[pos]... 'some help info'"); in pos_mult_help()
1242 assert_eq!(c.b.help.unwrap(), "some help info"); in pos_mult_help()
1251 let c = Arg::from_usage("[pos]... 'some help\' info'"); in pos_help_lit_single_quote()
1253 assert_eq!(c.b.help.unwrap(), "some help' info"); in pos_help_lit_single_quote()
1262 let c = Arg::from_usage("[pos]... 'some \'help\' info'"); in pos_help_double_lit_single_quote()
1264 assert_eq!(c.b.help.unwrap(), "some 'help' info"); in pos_help_double_lit_single_quote()
1274 "[pos]... 'some help{n}\ in pos_help_newline()
1278 assert_eq!(c.b.help.unwrap(), "some help{n}info"); in pos_help_newline()
1288 "[pos]... 'some help\' stuff{n}\ in pos_help_newline_lit_sq()
1292 assert_eq!(c.b.help.unwrap(), "some help' stuff{n}info"); in pos_help_newline_lit_sq()
1301 let d = Arg::from_usage("<pos>... 'some help info'"); in pos_req_mult_help()
1303 assert_eq!(d.b.help.unwrap(), "some help info"); in pos_req_mult_help()
1334 assert_eq!(a.b.help, Some("üñíčöĐ€")); in nonascii()
1337 assert_eq!(a.b.help, Some("ASCII")); in nonascii()
1340 assert_eq!(a.b.help, Some("üñíčöĐ€")); in nonascii()
1344 assert_eq!(a.b.help, Some("ø")); in nonascii()
1348 assert_eq!(a.b.help, Some("Nōṫ ASCII")); in nonascii()
1356 assert_eq!(a.b.help, Some("hælp")); in nonascii()