Lines Matching refs:help
13 -h, --help Print help
29 utils::assert_output(cmd, "test --help", HIDDEN_ARGS, false);
39 -h, --help Print help (see more with '--help')
56 .help("Some help text describing the --config arg"),
61 .help("This text should be visible"),
77 Some help text describing the --config arg
82 -h, --help
83 Print help (see a summary with '-h')
99 .help("Some help text describing the --config arg"),
104 .help("This text should be visible"),
107 utils::assert_output(cmd, "test --help", HIDDEN_SHORT_ARGS_LONG_HELP, false);
119 -h, --help
120 Print help (see a summary with '-h')
138 .help("Some help text describing the --config arg"),
143 .help("This text should be visible"),
146 utils::assert_output(cmd, "test --help", HIDDEN_LONG_ARGS, false);
155 -c, --config Some help text describing the --config arg
157 -h, --help Print help (see more with '--help')
173 .help("Some help text describing the --config arg"),
178 .help("This text should be visible"),
191 -h, --help Print help
198 Arg::new("pos").help("some pos").hide(true),
199 Arg::new("another").help("another pos"),
202 utils::assert_output(cmd, "test --help", HIDDEN_POS_ARGS, false);
209 -h, --help Print help
219 utils::assert_output(cmd, "test --help", HIDDEN_SUBCMDS, false);
225 After help
232 .after_help("After help")
235 .arg(arg!(-h - -help).action(ArgAction::Help).hide(true))
239 utils::assert_output(cmd, "test --help", HIDDEN_OPT_ARGS_ONLY, false);
245 After help
252 .after_help("After help")
255 .arg(arg!(-h - -help).action(ArgAction::Help).hide(true))
257 .args([Arg::new("pos").help("some pos").hide(true)]);
259 utils::assert_output(cmd, "test --help", HIDDEN_POS_ARGS_ONLY, false);
265 After help
272 .after_help("After help")
275 .arg(arg!(-h - -help).action(ArgAction::Help).hide(true))
279 utils::assert_output(cmd, "test --help", HIDDEN_SUBCMDS_ONLY, false);
284 // Normally the presence of a possible value with a help text triggers a
285 // change of the --help help text by appending `(see more with '--help')`
292 -h, --help Print help
299 PossibleValue::new("slow").help("not as fast"),
303 utils::assert_output(app, "ctest --help", POS_VALS_HELP, false);