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
↓ 2 callers
Method
field_methods
generate methods on top of a field
clap_derive/src/item.rs:996
↓ 2 callers
Method
file_name
(&self, name: &str)
clap_complete_nushell/src/lib.rs:34
↓ 2 callers
Method
find
(&self, needle: &str)
clap_lex/src/ext.rs:195
↓ 2 callers
Method
find_subcommand_mut
(&mut self, name: impl AsRef<std::ffi::OsStr>)
clap_builder/src/builder/command.rs:3998
↓ 2 callers
Function
find_words_ascii_space
(line: &str)
clap_builder/src/output/textwrap/word_separators.rs:1
↓ 2 callers
Function
fish_needs_quoting
(s: &str)
clap_complete/src/env/shells.rs:297
↓ 2 callers
Function
foo
(_: T)
clap_builder/src/builder/tests.rs:34
↓ 2 callers
Method
format
(mut self, cmd: &mut Command)
clap_builder/src/error/mod.rs:94
↓ 2 callers
Function
format_error_message
( message: &str, styles: &Styles, cmd: Option<&Command>, usage: Option<&StyledStr>, )
clap_builder/src/error/format.rs:397
↓ 2 callers
Method
formatted
(&self)
clap_builder/src/error/mod.rs:808
↓ 2 callers
Method
gather_conflicts
(&self, cmd: &Command, arg_id: &Id)
clap_builder/src/parser/validator.rs:457
↓ 2 callers
Function
gather_direct_conflicts
(cmd: &Command, id: &Id)
clap_builder/src/parser/validator.rs:491
↓ 2 callers
Function
gen_constructor
(fields: &[(&Field, Item)])
clap_derive/src/derives/args.rs:447
↓ 2 callers
Function
gen_parsers
( item: &Item, ty: &Sp<Ty>, field_name: &Ident, field: &Field, update: Option<&TokenStream
clap_derive/src/derives/args.rs:664
↓ 2 callers
Function
gen_updater
( fields: &[(&Field, Item)], use_self: bool, )
clap_derive/src/derives/args.rs:558
↓ 2 callers
Method
generate
(&self, cmd: &Command, buf: &mut dyn Write)
clap_complete/src/aot/shells/zsh.rs:17
↓ 2 callers
Method
get
(&self, kind: ContextKind)
clap_builder/src/error/mod.rs:193
↓ 2 callers
Method
get_aliases
(&self)
clap_builder/src/builder/arg.rs:4305
↓ 2 callers
Method
get_all_aliases
(&self)
clap_builder/src/builder/command.rs:3874
↓ 2 callers
Method
get_all_aliases
(&self)
clap_builder/src/builder/arg.rs:4285
↓ 2 callers
Method
get_all_short_flag_aliases
(&self)
clap_builder/src/builder/command.rs:3880
↓ 2 callers
Function
get_app
()
tests/builder/template_help.rs:157
↓ 2 callers
Method
get_arg_conflicts_with
Get a list of all arguments the given argument conflicts with. If the provided argument is declared as global, the conflicts will be determined based
clap_builder/src/builder/command.rs:4036
↓ 2 callers
Method
get_args
Getters for all args. It will return a vector of `Id` # Example ```rust # use clap_builder as clap; # use clap::{ArgGroup}; let args: Vec<&str> = ve
clap_builder/src/builder/arg_group.rs:191
↓ 2 callers
Method
get_before_long_help
(&self)
clap_builder/src/builder/command.rs:3968
↓ 2 callers
Method
get_color
Should we color the output?
clap_builder/src/builder/command.rs:3905
↓ 2 callers
Method
get_context
(&self)
clap_builder/src/builder/styling.rs:191
↓ 2 callers
Method
get_context_value
(&self)
clap_builder/src/builder/styling.rs:199
↓ 2 callers
Method
get_external_subcommand_value_parser
Configured parser for values passed to an external subcommand # Example ```rust # use clap_builder as clap; let cmd = clap::Command::new("raw") .ext
clap_builder/src/builder/command.rs:4260
↓ 2 callers
Method
get_header
(&self)
clap_builder/src/builder/styling.rs:147
↓ 2 callers
Function
get_help_flag
(cmd: &Command)
clap_builder/src/error/format.rs:429
↓ 2 callers
Method
get_help_template
(&self)
clap_builder/src/builder/command.rs:4314
↓ 2 callers
Method
get_id
Get the id used for de-duplicating
clap_complete/src/engine/candidate.rs:89
↓ 2 callers
Method
get_index
(&self, index: usize)
clap_builder/src/parser/matches/matched_arg.rs:70
↓ 2 callers
Function
get_inner_matches
(m: &ArgMatches)
tests/builder/propagate_globals.rs:33
↓ 2 callers
Method
get_matches_with
( &mut self, matcher: &mut ArgMatcher, raw_args: &mut clap_lex::RawArgs, args_
clap_builder/src/parser/parser.rs:49
↓ 2 callers
Method
get_min_vals
(&self)
clap_builder/src/builder/arg.rs:4348
↓ 2 callers
Method
get_mut
(&mut self, arg: &Id)
clap_builder/src/parser/arg_matcher.rs:97
↓ 2 callers
Method
get_overridden_usage
(&self)
clap_builder/src/builder/command.rs:3829
↓ 2 callers
Method
get_override_help
(&self)
clap_builder/src/builder/command.rs:4309
↓ 2 callers
Method
get_tag
Get the grouping tag
clap_complete/src/engine/candidate.rs:94
↓ 2 callers
Method
get_value_delimiter
(&self)
clap_builder/src/builder/arg.rs:4354
↓ 2 callers
Method
group_id
(&self)
clap_derive/src/item.rs:1002
↓ 2 callers
Method
help
Writes argument's help to the wrapped stream.
clap_builder/src/output/help_template.rs:608
↓ 2 callers
Method
help_err
(&self, use_long: bool)
clap_builder/src/parser/parser.rs:1621
↓ 2 callers
Method
hide_env_values
(self, yes: bool)
clap_builder/src/builder/arg.rs:2667
↓ 2 callers
Method
hide_long_help
(self, yes: bool)
clap_builder/src/builder/arg.rs:2844
↓ 2 callers
Method
id
(&self)
clap_derive/src/item.rs:1026
↓ 2 callers
Method
id
Only first for a given Id is shown To reduce the risk of conflicts, this should likely contain a namespace.
clap_complete/src/engine/candidate.rs:36
↓ 2 callers
Method
ids
Iterate over [`Arg`][crate::Arg] and [`ArgGroup`][crate::ArgGroup] [`Id`]s via [`ArgMatches::ids`]. # Examples ```rust # use clap_builder as clap; #
clap_builder/src/parser/matches/arg_matches.rs:549
↓ 2 callers
Method
infer_type_id
(&self, expected: AnyValueId)
clap_builder/src/parser/matches/matched_arg.rs:169
↓ 2 callers
Method
insert
(&mut self, value: T)
clap_builder/src/util/flat_set.rs:18
↓ 2 callers
Method
into_inner
(self)
clap_builder/src/parser/arg_matcher.rs:43
↓ 2 callers
Method
into_vals_flatten
(self)
clap_builder/src/parser/matches/matched_arg.rs:90
↓ 2 callers
Method
is_allow_negative_numbers_set
Report whether [`Arg::allow_negative_numbers`] is set
clap_builder/src/builder/arg.rs:4456
↓ 2 callers
Method
is_disable_version_flag_set
Report whether [`Command::disable_version_flag`] is set
clap_builder/src/builder/command.rs:4136
↓ 2 callers
Method
is_exclusive_set
Reports whether [`Arg::exclusive`] is set
clap_builder/src/builder/arg.rs:4544
↓ 2 callers
Function
is_generic_ty
(ty: &Type, name: &str)
clap_derive/src/utils/ty.rs:133
↓ 2 callers
Method
is_hide_default_value_set
Report whether [`Arg::hide_default_value`] is set
clap_builder/src/builder/arg.rs:4507
↓ 2 callers
Method
is_hide_env_set
(&self)
clap_builder/src/builder/arg.rs:4518
↓ 2 callers
Method
is_hide_set
Report whether [`Command::hide`] is set
clap_builder/src/builder/command.rs:4235
↓ 2 callers
Method
is_long
Can treat as a long-flag
clap_lex/src/lib.rs:342
↓ 2 callers
Method
is_position
(&self)
clap_builder/src/mkeymap.rs:32
↓ 2 callers
Method
is_short
Can treat as a short-flag
clap_lex/src/lib.rs:363
↓ 2 callers
Function
is_simple_ty
(ty: &Type, name: &str)
clap_derive/src/utils/ty.rs:121
↓ 2 callers
Method
is_stdio
Does the argument look like a stdio argument (`-`)
clap_lex/src/lib.rs:303
↓ 2 callers
Function
issue_1158_app
()
tests/builder/require.rs:1042
↓ 2 callers
Function
longs_and_visible_aliases
Gets all the long options, their visible aliases and flags of a [`clap::Command`]. Includes `help` and `version` depending on the [`clap::Command`] se
clap_complete/src/aot/generator/utils.rs:95
↓ 2 callers
Function
markers
(required: bool)
clap_mangen/src/render.rs:389
↓ 2 callers
Method
max_term_width
(mut self, width: usize)
clap_builder/src/builder/command.rs:1443
↓ 2 callers
Function
merge_lines
(lines: impl IntoIterator<Item = impl AsRef<str>>)
clap_derive/src/utils/doc_comments.rs:114
↓ 2 callers
Method
mut_arg
(mut self, arg_id: impl AsRef<str>, f: F)
clap_builder/src/builder/command.rs:244
↓ 2 callers
Method
mut_subcommand
(mut self, name: impl AsRef<str>, f: F)
clap_builder/src/builder/command.rs:372
↓ 2 callers
Method
needs_escaping
(&self)
clap_builder/src/util/escape.rs:7
↓ 2 callers
Method
needs_more_vals
(&self, o: &Arg)
clap_builder/src/parser/arg_matcher.rs:178
↓ 2 callers
Method
no_binary_name
(self, yes: bool)
clap_builder/src/builder/command.rs:1189
↓ 2 callers
Function
only_last_segment
(mut ty: &Type)
clap_derive/src/utils/ty.rs:77
↓ 2 callers
Function
only_one
(mut iter: I)
clap_derive/src/utils/ty.rs:145
↓ 2 callers
Function
option_sort_key
Note that this function is duplicated from `clap::builder`
clap_mangen/src/render.rs:513
↓ 2 callers
Function
parse
(_: &str)
clap_builder/src/builder/value_parser.rs:2686
↓ 2 callers
Function
parse_shortflags
Parse the short flags and find the first `takes_values` option.
clap_complete/src/engine/complete.rs:619
↓ 2 callers
Method
peek
Return the next [`ParsedArg`]
clap_lex/src/lib.rs:205
↓ 2 callers
Method
peek_os
Return a raw argument value.
clap_lex/src/lib.rs:210
↓ 2 callers
Method
pending_values_mut
( &mut self, id: &Id, ident: Option<Identifier>, trailing_values: bool, )
clap_builder/src/parser/arg_matcher.rs:198
↓ 2 callers
Function
pluralize
(values: usize, single: &'s str, plural: &'s str)
clap_builder/src/output/help_template.rs:1084
↓ 2 callers
Method
possible_subcommand
Checks if the arg matches a subcommand name, or any of its aliases (if defined)
clap_builder/src/parser/parser.rs:583
↓ 2 callers
Function
possible_value_candidates
Create [`CompletionCandidate`]s for [`clap::builder::PossibleValue`] This is implicitly applied for arguments with either a [`clap::builder::Possible
clap_complete/src/engine/custom.rs:436
↓ 2 callers
Function
put_usage
(styled: &mut StyledStr, usage: &StyledStr)
clap_builder/src/error/format.rs:424
↓ 2 callers
Method
remove
(&mut self, arg: &Id)
clap_builder/src/parser/arg_matcher.rs:101
↓ 2 callers
Method
remove
(mut self)
clap_builder/src/builder/command.rs:4302
↓ 2 callers
Method
remove
(&mut self, kind: ContextKind)
clap_builder/src/error/mod.rs:212
↓ 2 callers
Method
render_long_version
Version message rendered as if the user ran `--version`. See also [`Command::render_version`]. ### Coloring This function does not try to color the
clap_builder/src/builder/command.rs:1122
↓ 2 callers
Method
render_usage_
(&mut self)
clap_builder/src/builder/command.rs:1147
↓ 2 callers
Method
render_version
Version message rendered as if the user ran `-V`. See also [`Command::render_long_version`]. ### Coloring This function does not try to color the m
clap_builder/src/builder/command.rs:1097
↓ 2 callers
Method
required
(mut self, yes: bool)
clap_builder/src/builder/arg_group.rs:315
↓ 2 callers
Method
requires_all
(mut self, ns: impl IntoIterator<Item = impl Into<Id>>)
clap_builder/src/builder/arg_group.rs:412
↓ 2 callers
Method
reset
(&mut self)
clap_builder/src/output/textwrap/wrap_algorithms.rs:19
↓ 2 callers
Method
resolve
(self, _inner_type: &Type)
clap_derive/src/item.rs:1131
↓ 2 callers
Method
sc_spec_vals
(&self, a: &Command)
clap_builder/src/output/help_template.rs:1011
↓ 2 callers
Method
seek
Adjust the cursor's position
clap_lex/src/lib.rs:234
← previous
next →
501–600 of 3,258, ranked by callers