Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clap-rs/clap
/ functions
Functions
3,258 in github.com/clap-rs/clap
⨍
Functions
3,258
◇
Types & classes
446
↓ 7 callers
Method
is_args_conflicts_with_subcommands_set
Report whether [`Command::args_conflicts_with_subcommands`] is set
clap_builder/src/builder/command.rs:4270
↓ 7 callers
Function
issue_1105_setup
(argv: Vec<&'static str>)
tests/builder/opts.rs:481
↓ 7 callers
Method
keys
(&self)
clap_builder/src/util/flat_map.rs:118
↓ 7 callers
Method
max_values
Most number of values the argument accepts
clap_builder/src/builder/range.rs:82
↓ 7 callers
Method
min_values
Fewest number of values the argument accepts
clap_builder/src/builder/range.rs:77
↓ 7 callers
Method
next
(&mut self)
clap_builder/src/parser/matches/arg_matches.rs:1391
↓ 7 callers
Method
next_display_order
(&self)
clap_derive/src/item.rs:1016
↓ 7 callers
Method
set
(&mut self, tagged: T)
clap_builder/src/builder/ext.rs:21
↓ 7 callers
Method
strip_prefix
(&self, prefix: &str)
clap_lex/src/ext.rs:201
↓ 7 callers
Method
subcommand_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 callers
Method
to_long
Treat as a long-flag
clap_lex/src/lib.rs:324
↓ 7 callers
Function
with_version
()
tests/builder/version.rs:10
↓ 7 callers
Function
write_help
Writes the parser help to the wrapped stream.
clap_builder/src/output/help.rs:9
↓ 6 callers
Method
add
(mut self, tagged: T)
clap_builder/src/builder/arg.rs:947
↓ 6 callers
Function
assert_trailing_var_args
( input: &[&str], expected_var_arg: Option<&[&str]>, expected_flag: bool, )
tests/builder/app_settings.rs:632
↓ 6 callers
Function
built_with_version
()
clap_complete/src/aot/generator/utils.rs:174
↓ 6 callers
Method
contains
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 callers
Method
default_value_ifs
( mut self, ifs: impl IntoIterator< Item = ( impl Into<Id>,
clap_builder/src/builder/arg.rs:3230
↓ 6 callers
Method
error
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 callers
Function
flags
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 callers
Method
get_flag
(&self, id: &str)
clap_builder/src/parser/matches/arg_matches.rs:181
↓ 6 callers
Method
get_help
(&self)
clap_builder/src/builder/arg.rs:4185
↓ 6 callers
Method
get_valid
(&self)
clap_builder/src/builder/styling.rs:177
↓ 6 callers
Method
get_value
Get the literal value being proposed for completion
clap_complete/src/engine/candidate.rs:79
↓ 6 callers
Method
infer_kind
(&mut self, attrs: &[ClapAttr])
clap_derive/src/item.rs:355
↓ 6 callers
Method
iter
(&self)
clap_builder/src/util/flat_map.rs:126
↓ 6 callers
Method
long_flag_alias
(mut self, name: impl IntoResettable<Str>)
clap_builder/src/builder/command.rs:2746
↓ 6 callers
Method
matches
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 callers
Function
possible_values
Get the possible values for completion
clap_complete/src/aot/generator/utils.rs:134
↓ 6 callers
Method
push_attrs
(&mut self, attrs: &[ClapAttr])
clap_derive/src/item.rs:426
↓ 6 callers
Method
push_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 callers
Method
required_if_eq_all
( mut self, ifs: impl IntoIterator<Item = (impl Into<Id>, impl Into<OsStr>)>, )
clap_builder/src/builder/arg.rs:3773
↓ 6 callers
Method
required_if_eq_any
( mut self, ifs: impl IntoIterator<Item = (impl Into<Id>, impl Into<OsStr>)>, )
clap_builder/src/builder/arg.rs:3689
↓ 6 callers
Method
requires_if
(mut self, val: impl Into<ArgPredicate>, arg_id: impl Into<Id>)
clap_builder/src/builder/arg.rs:3841
↓ 6 callers
Method
short_aliases
(mut self, names: impl IntoIterator<Item = char>)
clap_builder/src/builder/arg.rs:346
↓ 6 callers
Method
short_flag_alias
(mut self, name: impl IntoResettable<char>)
clap_builder/src/builder/command.rs:2718
↓ 6 callers
Method
span
(&self)
clap_derive/src/utils/spanned.rs:23
↓ 6 callers
Method
try_get_matches
(self)
clap_builder/src/builder/command.rs:726
↓ 6 callers
Method
unroll_args_in_group
(&self, group: &Id)
clap_builder/src/builder/command.rs:5053
↓ 6 callers
Method
visible_aliases
(mut self, names: impl IntoIterator<Item = impl Into<Str>>)
clap_builder/src/builder/arg.rs:435
↓ 5 callers
Function
aliases_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:137
↓ 5 callers
Method
assert_no_defer
(&self)
clap_derive/src/item.rs:1113
↓ 5 callers
Method
casing
(&self)
clap_derive/src/item.rs:1088
↓ 5 callers
Function
collect_args_fields
( item: &'a Item, fields: &'a FieldsNamed, )
clap_derive/src/derives/args.rs:781
↓ 5 callers
Method
conflicts_with_all
(mut self, names: impl IntoIterator<Item = impl Into<Id>>)
clap_builder/src/builder/arg.rs:4075
↓ 5 callers
Method
display
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 callers
Method
env_casing
(&self)
clap_derive/src/item.rs:1092
↓ 5 callers
Function
external_subcommand
(name: &'static str)
clap_complete/tests/testsuite/common.rs:78
↓ 5 callers
Method
get
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 callers
Method
get_display_name
(&self)
clap_builder/src/builder/command.rs:3733
↓ 5 callers
Method
get_display_order
(&self)
clap_builder/src/builder/arg.rs:4207
↓ 5 callers
Method
get_groups
(&self)
clap_builder/src/builder/command.rs:4005
↓ 5 callers
Method
get_long_flag
(&self)
clap_builder/src/builder/command.rs:3805
↓ 5 callers
Method
get_long_help
(&self)
clap_builder/src/builder/arg.rs:4201
↓ 5 callers
Method
get_opts
Iterate through the *options*.
clap_builder/src/builder/command.rs:4022
↓ 5 callers
Method
get_placeholder
(&self)
clap_builder/src/builder/styling.rs:171
↓ 5 callers
Method
get_subcommands_mut
(&mut self)
clap_builder/src/builder/command.rs:3938
↓ 5 callers
Method
get_value_names
(&self)
clap_builder/src/builder/arg.rs:4333
↓ 5 callers
Method
insert
(&mut self, other: Self)
clap_builder/src/builder/arg_settings.rs:20
↓ 5 callers
Method
into_iter
(self)
tests/builder/possible_values.rs:504
↓ 5 callers
Method
is_allow_hyphen_values_set
Report whether [`Arg::allow_hyphen_values`] is set
clap_builder/src/builder/arg.rs:4451
↓ 5 callers
Method
is_global_set
Report whether [`Arg::global`] is set
clap_builder/src/builder/arg.rs:4492
↓ 5 callers
Method
is_hide_set
Get the visibility of the completion candidate
clap_complete/src/engine/candidate.rs:104
↓ 5 callers
Method
is_subcommand_negates_reqs_set
Report whether [`Command::subcommand_negates_reqs`] is set
clap_builder/src/builder/command.rs:4285
↓ 5 callers
Method
is_subcommand_required_set
Report whether [`Command::subcommand_required`] is set
clap_builder/src/builder/command.rs:4240
↓ 5 callers
Function
multi_value_option_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:284
↓ 5 callers
Method
next_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 callers
Method
next_line_help
(self, yes: bool)
clap_builder/src/builder/arg.rs:2484
↓ 5 callers
Method
next_value_os
Advance the iterator, returning everything left as a value
clap_lex/src/lib.rs:453
↓ 5 callers
Function
optional_multi_value_option_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:302
↓ 5 callers
Function
optional_value_option_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:293
↓ 5 callers
Method
override_usage
(mut self, usage: impl IntoResettable<StyledStr>)
clap_builder/src/builder/command.rs:2202
↓ 5 callers
Method
push_doc_comment
(&mut self, attrs: &[Attribute], short_name: &str, long_name: Option<&str>)
clap_derive/src/item.rs:909
↓ 5 callers
Function
quoting_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:87
↓ 5 callers
Method
required_graph
(&self)
clap_builder/src/builder/command.rs:5036
↓ 5 callers
Method
required_unless_present_all
( mut self, names: impl IntoIterator<Item = impl Into<Id>>, )
clap_builder/src/builder/arg.rs:3432
↓ 5 callers
Function
should_show_arg
(use_long: bool, arg: &Arg)
clap_builder/src/output/help_template.rs:1136
↓ 5 callers
Method
sort_by_key
(&mut self, f: F)
clap_builder/src/util/flat_set.rs:56
↓ 5 callers
Function
special_commands_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:59
↓ 5 callers
Method
split_once
(&self, needle: &'_ str)
clap_lex/src/ext.rs:223
↓ 5 callers
Function
sub_subcommands_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:162
↓ 5 callers
Function
subty_if_name
(ty: &'a Type, name: &str)
clap_derive/src/utils/ty.rs:117
↓ 5 callers
Method
to_possible_value
(&self)
examples/tutorial_builder/04_01_enum.rs:15
↓ 5 callers
Method
to_possible_value
(&self)
clap_builder/src/util/color.rs:96
↓ 5 callers
Method
to_value
Treat as a value <div class="warning"> NOTE:** May return a flag or an escape. </div>
clap_lex/src/lib.rs:385
↓ 5 callers
Function
two_multi_valued_arguments_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:311
↓ 5 callers
Function
value_hint_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:191
↓ 5 callers
Function
value_terminator_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:275
↓ 5 callers
Method
wrap
(&mut self, mut words: Vec<&'w str>)
clap_builder/src/output/textwrap/wrap_algorithms.rs:24
↓ 4 callers
Function
app_short
Build a clap application with short help strings.
clap_bench/benches/ripgrep.rs:266
↓ 4 callers
Method
arg_ids
(&self)
clap_builder/src/parser/arg_matcher.rs:109
↓ 4 callers
Method
args
(mut self, ns: impl IntoIterator<Item = impl Into<Id>>)
clap_builder/src/builder/arg_group.rs:170
↓ 4 callers
Method
borrow
(&self)
clap_builder/src/util/id.rs:118
↓ 4 callers
Method
default_values_ifs
( mut self, ifs: impl IntoIterator< Item = ( impl Into<Id>,
clap_builder/src/builder/arg.rs:3252
↓ 4 callers
Method
deprecations
(&self)
clap_derive/src/item.rs:1011
↓ 4 callers
Method
display_width
(&self)
clap_builder/src/builder/styled_str.rs:115
↓ 4 callers
Method
external_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 callers
Method
file_name
(&self, name: &str)
clap_complete/src/aot/shells/zsh.rs:13
↓ 4 callers
Method
first
(&self)
clap_builder/src/parser/matches/matched_arg.rs:102
↓ 4 callers
Method
get
(&self)
clap_derive/src/utils/spanned.rs:19
← previous
next →
201–300 of 3,258, ranked by callers