MCPcopy Create free account

hub / github.com/clap-rs/clap / functions

Functions3,258 in github.com/clap-rs/clap

↓ 7 callersMethodis_args_conflicts_with_subcommands_set
Report whether [`Command::args_conflicts_with_subcommands`] is set
clap_builder/src/builder/command.rs:4270
↓ 7 callersFunctionissue_1105_setup
(argv: Vec<&'static str>)
tests/builder/opts.rs:481
↓ 7 callersMethodkeys
(&self)
clap_builder/src/util/flat_map.rs:118
↓ 7 callersMethodmax_values
Most number of values the argument accepts
clap_builder/src/builder/range.rs:82
↓ 7 callersMethodmin_values
Fewest number of values the argument accepts
clap_builder/src/builder/range.rs:77
↓ 7 callersMethodnext
(&mut self)
clap_builder/src/parser/matches/arg_matches.rs:1391
↓ 7 callersMethodnext_display_order
(&self)
clap_derive/src/item.rs:1016
↓ 7 callersMethodset
(&mut self, tagged: T)
clap_builder/src/builder/ext.rs:21
↓ 7 callersMethodstrip_prefix
(&self, prefix: &str)
clap_lex/src/ext.rs:201
↓ 7 callersMethodsubcommand_negates_reqs
Allows [`subcommands`] to override all requirements of the parent command. For example, if you had a subcommand or top level application with a requi
clap_builder/src/builder/command.rs:3430
↓ 7 callersMethodto_long
Treat as a long-flag
clap_lex/src/lib.rs:324
↓ 7 callersFunctionwith_version
()
tests/builder/version.rs:10
↓ 7 callersFunctionwrite_help
Writes the parser help to the wrapped stream.
clap_builder/src/output/help.rs:9
↓ 6 callersMethodadd
(mut self, tagged: T)
clap_builder/src/builder/arg.rs:947
↓ 6 callersFunctionassert_trailing_var_args
( input: &[&str], expected_var_arg: Option<&[&str]>, expected_flag: bool, )
tests/builder/app_settings.rs:632
↓ 6 callersFunctionbuilt_with_version
()
clap_complete/src/aot/generator/utils.rs:174
↓ 6 callersMethodcontains
If any arg has corresponding key in this map, we can search the key with `u64` (for positional argument), `char` (for short flag), `&str` and `OsStrin
clap_builder/src/mkeymap.rs:86
↓ 6 callersMethoddefault_value_ifs
( mut self, ifs: impl IntoIterator< Item = ( impl Into<Id>,
clap_builder/src/builder/arg.rs:3230
↓ 6 callersMethoderror
Custom error message for post-parsing validation Note:** this will ensure the `Command` has been sufficiently [built][Command::build] for any relevan
clap_builder/src/builder/command.rs:641
↓ 6 callersFunctionflags
Gets all the flags of a [`clap::Command`]. Includes `help` and `version` depending on the [`clap::Command`] settings.
clap_complete/src/aot/generator/utils.rs:125
↓ 6 callersMethodget_flag
(&self, id: &str)
clap_builder/src/parser/matches/arg_matches.rs:181
↓ 6 callersMethodget_help
(&self)
clap_builder/src/builder/arg.rs:4185
↓ 6 callersMethodget_valid
(&self)
clap_builder/src/builder/styling.rs:177
↓ 6 callersMethodget_value
Get the literal value being proposed for completion
clap_complete/src/engine/candidate.rs:79
↓ 6 callersMethodinfer_kind
(&mut self, attrs: &[ClapAttr])
clap_derive/src/item.rs:355
↓ 6 callersMethoditer
(&self)
clap_builder/src/util/flat_map.rs:126
↓ 6 callersMethodlong_flag_alias
(mut self, name: impl IntoResettable<Str>)
clap_builder/src/builder/command.rs:2746
↓ 6 callersMethodmatches
Tests if the value is valid for this argument value The value is valid if it is either the name or one of the aliases. # Examples ```rust # use cla
clap_builder/src/builder/possible_value.rs:221
↓ 6 callersFunctionpossible_values
Get the possible values for completion
clap_complete/src/aot/generator/utils.rs:134
↓ 6 callersMethodpush_attrs
(&mut self, attrs: &[ClapAttr])
clap_derive/src/item.rs:426
↓ 6 callersMethodpush_string
May allow the compiler to consolidate the `Drop`s for `msg`, reducing code size compared to `styled.push_str(&msg)`
clap_builder/src/builder/styled_str.rs:41
↓ 6 callersMethodrequired_if_eq_all
( mut self, ifs: impl IntoIterator<Item = (impl Into<Id>, impl Into<OsStr>)>, )
clap_builder/src/builder/arg.rs:3773
↓ 6 callersMethodrequired_if_eq_any
( mut self, ifs: impl IntoIterator<Item = (impl Into<Id>, impl Into<OsStr>)>, )
clap_builder/src/builder/arg.rs:3689
↓ 6 callersMethodrequires_if
(mut self, val: impl Into<ArgPredicate>, arg_id: impl Into<Id>)
clap_builder/src/builder/arg.rs:3841
↓ 6 callersMethodshort_aliases
(mut self, names: impl IntoIterator<Item = char>)
clap_builder/src/builder/arg.rs:346
↓ 6 callersMethodshort_flag_alias
(mut self, name: impl IntoResettable<char>)
clap_builder/src/builder/command.rs:2718
↓ 6 callersMethodspan
(&self)
clap_derive/src/utils/spanned.rs:23
↓ 6 callersMethodtry_get_matches
(self)
clap_builder/src/builder/command.rs:726
↓ 6 callersMethodunroll_args_in_group
(&self, group: &Id)
clap_builder/src/builder/command.rs:5053
↓ 6 callersMethodvisible_aliases
(mut self, names: impl IntoIterator<Item = impl Into<Str>>)
clap_builder/src/builder/arg.rs:435
↓ 5 callersFunctionaliases_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:137
↓ 5 callersMethodassert_no_defer
(&self)
clap_derive/src/item.rs:1113
↓ 5 callersMethodcasing
(&self)
clap_derive/src/item.rs:1088
↓ 5 callersFunctioncollect_args_fields
( item: &'a Item, fields: &'a FieldsNamed, )
clap_derive/src/derives/args.rs:781
↓ 5 callersMethodconflicts_with_all
(mut self, names: impl IntoIterator<Item = impl Into<Id>>)
clap_builder/src/builder/arg.rs:4075
↓ 5 callersMethoddisplay
Safely print an argument that may contain non-UTF8 content This may perform lossy conversion, depending on the platform. If you would like an impleme
clap_lex/src/lib.rs:392
↓ 5 callersMethodenv_casing
(&self)
clap_derive/src/item.rs:1092
↓ 5 callersFunctionexternal_subcommand
(name: &'static str)
clap_complete/tests/testsuite/common.rs:78
↓ 5 callersMethodget
Find the arg have corresponding key in this map, we can search the key with `u64` (for positional argument), `char` (for short flag), `&str` and `OsSt
clap_builder/src/mkeymap.rs:101
↓ 5 callersMethodget_display_name
(&self)
clap_builder/src/builder/command.rs:3733
↓ 5 callersMethodget_display_order
(&self)
clap_builder/src/builder/arg.rs:4207
↓ 5 callersMethodget_groups
(&self)
clap_builder/src/builder/command.rs:4005
↓ 5 callersMethodget_long_flag
(&self)
clap_builder/src/builder/command.rs:3805
↓ 5 callersMethodget_long_help
(&self)
clap_builder/src/builder/arg.rs:4201
↓ 5 callersMethodget_opts
Iterate through the *options*.
clap_builder/src/builder/command.rs:4022
↓ 5 callersMethodget_placeholder
(&self)
clap_builder/src/builder/styling.rs:171
↓ 5 callersMethodget_subcommands_mut
(&mut self)
clap_builder/src/builder/command.rs:3938
↓ 5 callersMethodget_value_names
(&self)
clap_builder/src/builder/arg.rs:4333
↓ 5 callersMethodinsert
(&mut self, other: Self)
clap_builder/src/builder/arg_settings.rs:20
↓ 5 callersMethodinto_iter
(self)
tests/builder/possible_values.rs:504
↓ 5 callersMethodis_allow_hyphen_values_set
Report whether [`Arg::allow_hyphen_values`] is set
clap_builder/src/builder/arg.rs:4451
↓ 5 callersMethodis_global_set
Report whether [`Arg::global`] is set
clap_builder/src/builder/arg.rs:4492
↓ 5 callersMethodis_hide_set
Get the visibility of the completion candidate
clap_complete/src/engine/candidate.rs:104
↓ 5 callersMethodis_subcommand_negates_reqs_set
Report whether [`Command::subcommand_negates_reqs`] is set
clap_builder/src/builder/command.rs:4285
↓ 5 callersMethodis_subcommand_required_set
Report whether [`Command::subcommand_required`] is set
clap_builder/src/builder/command.rs:4240
↓ 5 callersFunctionmulti_value_option_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:284
↓ 5 callersMethodnext_flag
Advance the iterator, returning the next short flag on success On error, returns the invalid-UTF8 value
clap_lex/src/lib.rs:439
↓ 5 callersMethodnext_line_help
(self, yes: bool)
clap_builder/src/builder/arg.rs:2484
↓ 5 callersMethodnext_value_os
Advance the iterator, returning everything left as a value
clap_lex/src/lib.rs:453
↓ 5 callersFunctionoptional_multi_value_option_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:302
↓ 5 callersFunctionoptional_value_option_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:293
↓ 5 callersMethodoverride_usage
(mut self, usage: impl IntoResettable<StyledStr>)
clap_builder/src/builder/command.rs:2202
↓ 5 callersMethodpush_doc_comment
(&mut self, attrs: &[Attribute], short_name: &str, long_name: Option<&str>)
clap_derive/src/item.rs:909
↓ 5 callersFunctionquoting_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:87
↓ 5 callersMethodrequired_graph
(&self)
clap_builder/src/builder/command.rs:5036
↓ 5 callersMethodrequired_unless_present_all
( mut self, names: impl IntoIterator<Item = impl Into<Id>>, )
clap_builder/src/builder/arg.rs:3432
↓ 5 callersFunctionshould_show_arg
(use_long: bool, arg: &Arg)
clap_builder/src/output/help_template.rs:1136
↓ 5 callersMethodsort_by_key
(&mut self, f: F)
clap_builder/src/util/flat_set.rs:56
↓ 5 callersFunctionspecial_commands_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:59
↓ 5 callersMethodsplit_once
(&self, needle: &'_ str)
clap_lex/src/ext.rs:223
↓ 5 callersFunctionsub_subcommands_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:162
↓ 5 callersFunctionsubty_if_name
(ty: &'a Type, name: &str)
clap_derive/src/utils/ty.rs:117
↓ 5 callersMethodto_possible_value
(&self)
examples/tutorial_builder/04_01_enum.rs:15
↓ 5 callersMethodto_possible_value
(&self)
clap_builder/src/util/color.rs:96
↓ 5 callersMethodto_value
Treat as a value <div class="warning"> NOTE:** May return a flag or an escape. </div>
clap_lex/src/lib.rs:385
↓ 5 callersFunctiontwo_multi_valued_arguments_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:311
↓ 5 callersFunctionvalue_hint_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:191
↓ 5 callersFunctionvalue_terminator_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:275
↓ 5 callersMethodwrap
(&mut self, mut words: Vec<&'w str>)
clap_builder/src/output/textwrap/wrap_algorithms.rs:24
↓ 4 callersFunctionapp_short
Build a clap application with short help strings.
clap_bench/benches/ripgrep.rs:266
↓ 4 callersMethodarg_ids
(&self)
clap_builder/src/parser/arg_matcher.rs:109
↓ 4 callersMethodargs
(mut self, ns: impl IntoIterator<Item = impl Into<Id>>)
clap_builder/src/builder/arg_group.rs:170
↓ 4 callersMethodborrow
(&self)
clap_builder/src/util/id.rs:118
↓ 4 callersMethoddefault_values_ifs
( mut self, ifs: impl IntoIterator< Item = ( impl Into<Id>,
clap_builder/src/builder/arg.rs:3252
↓ 4 callersMethoddeprecations
(&self)
clap_derive/src/item.rs:1011
↓ 4 callersMethoddisplay_width
(&self)
clap_builder/src/builder/styled_str.rs:115
↓ 4 callersMethodexternal_subcommand_value_parser
Specifies how to parse external subcommand arguments. The default parser is for `OsString`. This can be used to switch it to `String` or another typ
clap_builder/src/builder/command.rs:3280
↓ 4 callersMethodfile_name
(&self, name: &str)
clap_complete/src/aot/shells/zsh.rs:13
↓ 4 callersMethodfirst
(&self)
clap_builder/src/parser/matches/matched_arg.rs:102
↓ 4 callersMethodget
(&self)
clap_derive/src/utils/spanned.rs:19
← previousnext →201–300 of 3,258, ranked by callers