• Home
  • Raw
  • Download

Lines Matching full:config

8     let m = Command::new("config")  in empty_values()
9 .arg(Arg::new("config").long("config").action(ArgAction::Set)) in empty_values()
10 .try_get_matches_from(["config", "--config", ""]) in empty_values()
12 assert_eq!(m.get_one::<String>("config").map(|v| v.as_str()), Some("")); in empty_values()
17 let m = Command::new("config") in empty_values_with_equals()
18 .arg(Arg::new("config").long("config").action(ArgAction::Set)) in empty_values_with_equals()
19 .try_get_matches_from(["config", "--config="]) in empty_values_with_equals()
21 assert_eq!(m.get_one::<String>("config").map(|v| v.as_str()), Some("")); in empty_values_with_equals()
23 let m = Command::new("config") in empty_values_with_equals()
24 .arg(Arg::new("config").short('c').action(ArgAction::Set)) in empty_values_with_equals()
25 .try_get_matches_from(["config", "-c="]) in empty_values_with_equals()
27 assert_eq!(m.get_one::<String>("config").map(|v| v.as_str()), Some("")) in empty_values_with_equals()
32 let m = Command::new("config") in no_empty_values()
34 Arg::new("config") in no_empty_values()
35 .long("config") in no_empty_values()
39 .try_get_matches_from(["config", "--config", ""]); in no_empty_values()
43 let m = Command::new("config") in no_empty_values()
45 Arg::new("config") in no_empty_values()
50 .try_get_matches_from(["config", "-c", ""]); in no_empty_values()
57 let m = Command::new("config") in no_empty_values_with_equals()
59 Arg::new("config") in no_empty_values_with_equals()
60 .long("config") in no_empty_values_with_equals()
64 .try_get_matches_from(["config", "--config="]); in no_empty_values_with_equals()
68 let m = Command::new("config") in no_empty_values_with_equals()
70 Arg::new("config") in no_empty_values_with_equals()
75 .try_get_matches_from(["config", "-c="]); in no_empty_values_with_equals()
82 let m = Command::new("config") in no_empty_values_without_equals()
84 Arg::new("config") in no_empty_values_without_equals()
85 .long("config") in no_empty_values_without_equals()
89 .try_get_matches_from(["config", "--config"]); in no_empty_values_without_equals()
93 let m = Command::new("config") in no_empty_values_without_equals()
95 Arg::new("config") in no_empty_values_without_equals()
100 .try_get_matches_from(["config", "-c"]); in no_empty_values_without_equals()
108 let cmd = Command::new("config").arg( in no_empty_values_without_equals_but_requires_equals()
109 Arg::new("config") in no_empty_values_without_equals_but_requires_equals()
110 .long("config") in no_empty_values_without_equals_but_requires_equals()
115 let m = cmd.clone().try_get_matches_from(["config", "--config"]); in no_empty_values_without_equals_but_requires_equals()
121 "error: equal sign is needed when assigning values to '--config=<config>' in no_empty_values_without_equals_but_requires_equals()
123 Usage: config [OPTIONS] in no_empty_values_without_equals_but_requires_equals()
128 utils::assert_output(cmd, "config --config", NO_EUQALS_ERROR, true); in no_empty_values_without_equals_but_requires_equals()