Lines Matching refs:Opt
10 struct Opt {
14 assert_eq!(Opt { arg: 3 }, Opt::try_parse_from(["test"]).unwrap());
15 assert_eq!(Opt { arg: 1 }, Opt::try_parse_from(["test", "1"]).unwrap());
17 let help = utils::get_long_help::<Opt>();
24 struct Opt {
28 assert_eq!(Opt { arg: 3 }, Opt::try_parse_from(["test"]).unwrap());
29 assert_eq!(Opt { arg: 1 }, Opt::try_parse_from(["test", "1"]).unwrap());
31 let help = utils::get_long_help::<Opt>();
38 struct Opt {
42 assert_eq!(Opt { arg: 0 }, Opt::try_parse_from(["test"]).unwrap());
43 assert_eq!(Opt { arg: 1 }, Opt::try_parse_from(["test", "1"]).unwrap());
45 let help = utils::get_long_help::<Opt>();
52 struct Opt {
72 Opt {
80 Opt::try_parse_from(["test"]).unwrap()
83 Opt {
91 Opt::try_parse_from(["test", "1"]).unwrap()
94 Opt {
102 Opt::try_parse_from(["test", "--arg4", "42", "--arg4", "15", "--arg5", "baz"]).unwrap()
105 let help = utils::get_long_help::<Opt>();
112 struct Opt {
117 Opt {
120 Opt::try_parse_from(["test"]).unwrap()
123 Opt {
126 Opt::try_parse_from(["test", "ghi"]).unwrap()
129 let help = utils::get_long_help::<Opt>();
136 struct Opt {
149 Opt {
153 Opt::try_parse_from(["test"]).unwrap()
156 Opt {
160 Opt::try_parse_from(["test", "ghi", "--arg2", "baz.bar", "--arg2", "foo.bar"]).unwrap()
163 let help = utils::get_long_help::<Opt>();