Home
last modified time | relevance | path

Searched refs:get_help (Results 1 – 21 of 21) sorted by relevance

/third_party/rust/crates/clap/tests/
Dmacros.rs49 assert_eq!(arg.get_help().map(|s| s.to_string()), None); in short()
57 assert_eq!(arg.get_help().map(|s| s.to_string()), None); in short()
65 assert_eq!(arg.get_help().map(|s| s.to_string()), None); in short()
74 arg.get_help().map(|s| s.to_string()), in short()
88 assert_eq!(arg.get_help().map(|s| s.to_string()), None); in short_and_long()
97 assert_eq!(arg.get_help().map(|s| s.to_string()), None); in short_and_long()
106 assert_eq!(arg.get_help().map(|s| s.to_string()), None); in short_and_long()
116 arg.get_help().map(|s| s.to_string()), in short_and_long()
195 assert_eq!(arg.get_help().map(|s| s.to_string()), None); in short_with_value()
203 assert_eq!(arg.get_help().map(|s| s.to_string()), None); in short_with_value()
[all …]
/third_party/rust/crates/clap/tests/derive/
Dapp_name.rs4 use crate::utils::get_help;
13 let help = get_help::<MyApp>(); in app_name_in_short_help_from_struct()
24 let help = get_help::<MyApp>(); in app_name_in_long_help_from_struct()
35 let help = get_help::<MyApp>(); in app_name_in_short_help_from_enum()
Drename_all_env.rs16 let help = utils::get_help::<BehaviorModel>(); in it_works()
28 let help = utils::get_help::<BehaviorModel>(); in default_is_screaming()
44 let help = utils::get_help::<BehaviorModel>(); in overridable()
Darguments.rs17 use crate::utils::get_help;
55 let help = get_help::<Opt>(); in auto_value_name()
73 let help = get_help::<Opt>(); in explicit_value_name()
Ddoc_comments_help.rs89 let short_help = utils::get_help::<LoremIpsum>(); in field_long_doc_comment_both_help_long_help()
121 let short_help = utils::get_help::<LoremIpsum>(); in top_long_doc_comment_both_help_long_help()
210 let help = utils::get_help::<Command>(); in multiline_separates_default()
Dflatten.rs213 let help = utils::get_help::<Opt>(); in flatten_with_doc_comment()
234 let short_help = utils::get_help::<Command>(); in docstrings_ordering_with_multiple_command()
254 let short_help = utils::get_help::<Command>(); in docstrings_ordering_with_multiple_clap_partial()
Dutils.rs17 pub fn get_help<T: CommandFactory>() -> String { in get_help() function
Dflags.rs96 arg.get_help().map(|s| s.to_string()), in inferred_help()
120 arg.get_help().map(|s| s.to_string()), in inferred_version()
Doptions.rs284 let help = utils::get_help::<Opt>(); in option_option_type_help()
/third_party/rust/crates/clap/clap_complete/src/shells/
Dpowershell.rs88 let tooltip = get_tooltip(option.get_help(), shorts[0]); in generate_inner()
102 let tooltip = get_tooltip(option.get_help(), longs[0]); in generate_inner()
118 let tooltip = get_tooltip(flag.get_help(), shorts[0]); in generate_inner()
132 let tooltip = get_tooltip(flag.get_help(), longs[0]); in generate_inner()
Delvish.rs83 let tooltip = get_tooltip(option.get_help(), shorts[0]); in generate_inner()
91 let tooltip = get_tooltip(option.get_help(), longs[0]); in generate_inner()
101 let tooltip = get_tooltip(flag.get_help(), shorts[0]); in generate_inner()
109 let tooltip = get_tooltip(flag.get_help(), longs[0]); in generate_inner()
Dfish.rs100 if let Some(data) = option.get_help() {
126 if let Some(data) = flag.get_help() {
174 escape_string(&value.get_help().unwrap_or_default().to_string(), true) in value_completion()
Dzsh.rs360 .any(|value| !value.is_hide_set() && value.get_help().is_some())
374 escape_help(&value.get_help().unwrap_or_default().to_string()),
447 let help = escape_help(&o.get_help().unwrap_or_default().to_string());
547 let help = escape_help(&f.get_help().unwrap_or_default().to_string());
649 .get_help()
/third_party/rust/crates/clap/src/builder/
Dpossible_value.rs155 pub fn get_help(&self) -> Option<&StyledStr> { in get_help() method
165 self.get_help() in get_visible_help()
Darg.rs3704 pub fn get_help(&self) -> Option<&StyledStr> { in get_help() method
Dcommand.rs4132 .filter(|arg| arg.get_help().is_none() && arg.get_long_help().is_none()) in _panic_on_missing_help()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
Dlayout_cmdline_token.rs109 pub get_help: ::std::option::Option< field
169 ::std::ptr::addr_of!((*ptr).get_help) as usize - ptr as usize in bindgen_test_layout_cmdline_token_ops()
176 stringify!(get_help) in bindgen_test_layout_cmdline_token_ops()
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Dlayout_cmdline_token.h42 int (*get_help)(cmdline_parse_token_hdr_t *, char *, unsigned int); member
/third_party/rust/crates/clap/clap_complete_fig/src/
Dfig.rs191 if let Some(data) = option.get_help() { in gen_options()
300 if let Some(data) = flag.get_help() { in gen_options()
402 if let Some(help) = value.get_help() { in gen_args()
/third_party/rust/crates/clap/clap_mangen/src/
Drender.rs291 return opt.get_help(); in option_help()
341 let with_help = possibles.iter().any(|p| p.get_help().is_some()); in format_possible_values()
345 match value.get_help() { in format_possible_values()
/third_party/rust/crates/clap/src/output/
Dhelp_template.rs472 .or_else(|| arg.get_help()) in write_arg()
475 arg.get_help() in write_arg()
646 if let Some(help) = pv.get_help() { in help()
691 let h = arg.get_help().unwrap_or_default(); in arg_next_line_help()