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
↓ 3 callers
Method
is_multiple
Either multiple values or occurrences
clap_builder/src/builder/arg.rs:4759
↓ 3 callers
Method
is_multiple_values_set
(&self)
clap_builder/src/builder/arg.rs:4440
↓ 3 callers
Method
is_negative_number
Does the argument look like a negative number? This won't parse the number in full but attempts to see if this looks like something along the lines o
clap_lex/src/lib.rs:316
↓ 3 callers
Method
is_next_line_help_set
Report whether [`Arg::next_line_help`] is set
clap_builder/src/builder/arg.rs:4497
↓ 3 callers
Method
is_require_equals_set
Report whether [`Arg::require_equals`] is set
clap_builder/src/builder/arg.rs:4539
↓ 3 callers
Method
is_trailing_var_arg_set
Report whether [`Arg::trailing_var_arg`] is set
clap_builder/src/builder/arg.rs:4549
↓ 3 callers
Method
iter_text
(&self)
clap_builder/src/builder/styled_str.rs:134
↓ 3 callers
Method
kind
Type of error for programmatic processing
clap_builder/src/error/mod.rs:180
↓ 3 callers
Method
literal
(mut self, style: Style)
clap_builder/src/builder/styling.rs:98
↓ 3 callers
Method
long_flag_aliases
(mut self, names: impl IntoIterator<Item = impl Into<Str>>)
clap_builder/src/builder/command.rs:2849
↓ 3 callers
Method
long_version
(mut self, ver: impl IntoResettable<Str>)
clap_builder/src/builder/command.rs:2151
↓ 3 callers
Method
newline
(&mut self)
clap_derive/src/utils/doc_comments.rs:156
↓ 3 callers
Method
next
(&mut self)
clap_builder/src/util/flat_map.rs:197
↓ 3 callers
Method
next_os
Advance the cursor, returning a raw argument value.
clap_lex/src/lib.rs:198
↓ 3 callers
Function
option_markers
(opt: &Arg)
clap_mangen/src/render.rs:385
↓ 3 callers
Method
or_insert
(self, default: V)
clap_builder/src/util/flat_map.rs:156
↓ 3 callers
Method
parse_ref
Parse into a `AnyValue` When `arg` is `None`, an external subcommand value is being parsed.
clap_builder/src/builder/value_parser.rs:235
↓ 3 callers
Method
placeholder
(mut self, style: Style)
clap_builder/src/builder/styling.rs:105
↓ 3 callers
Function
populate_arg_candidate
(candidate: CompletionCandidate, arg: &clap::Arg)
clap_complete/src/engine/complete.rs:555
↓ 3 callers
Method
possible_values
Report all `possible_values`
clap_builder/src/util/color.rs:62
↓ 3 callers
Method
print
Prints formatted and colored error to `stdout` or `stderr` according to its error kind # Example ```no_run # use clap_builder as clap; use clap::Comm
clap_builder/src/error/mod.rs:268
↓ 3 callers
Method
range
Narrow the supported range
clap_builder/src/builder/value_parser.rs:1327
↓ 3 callers
Function
raw_deprecated
()
clap_derive/src/derives/args.rs:769
↓ 3 callers
Method
remaining
Return all remaining raw arguments, advancing the cursor to the end # Example ```rust,no_run # use std::path::PathBuf; let raw = clap_lex::RawArgs::
clap_lex/src/lib.rs:227
↓ 3 callers
Method
remove_entry
(&mut self, key: &Q)
clap_builder/src/util/flat_map.rs:63
↓ 3 callers
Method
requires
(mut self, id: impl IntoResettable<Id>)
clap_builder/src/builder/arg_group.rs:360
↓ 3 callers
Method
set_source
(&mut self, source: ValueSource)
clap_builder/src/parser/matches/matched_arg.rs:157
↓ 3 callers
Method
short_flag_aliases
(mut self, names: impl IntoIterator<Item = char>)
clap_builder/src/builder/command.rs:2820
↓ 3 callers
Function
should_show_subcommand
(subcommand: &Command)
clap_builder/src/output/help_template.rs:1150
↓ 3 callers
Method
stylized
(&self, styles: &Styles, required: Option<bool>)
clap_builder/src/builder/arg.rs:4653
↓ 3 callers
Function
subcommands
Gets subcommands of [`clap::Command`] in the form of `("name", "bin_name")`. Subcommand `rustup toolchain install` would be converted to `("install",
clap_complete/src/aot/generator/utils.rs:40
↓ 3 callers
Method
tag
Group candidates by tag Future: these may become user-visible
clap_complete/src/engine/candidate.rs:44
↓ 3 callers
Method
translate
(self, style: CasingStyle)
clap_derive/src/item.rs:1464
↓ 3 callers
Method
type_id
(&self)
clap_builder/src/parser/matches/matched_arg.rs:165
↓ 3 callers
Method
unroll_arg_requires
(&self, func: F, arg: &Id)
clap_builder/src/builder/command.rs:5083
↓ 3 callers
Method
unset
(&mut self, setting: ArgSettings)
clap_builder/src/builder/arg_settings.rs:12
↓ 3 callers
Method
usage
(mut self, style: Style)
clap_builder/src/builder/styling.rs:91
↓ 3 callers
Method
use_stderr
(&self)
clap_builder/src/error/mod.rs:218
↓ 3 callers
Method
valid
(mut self, style: Style)
clap_builder/src/builder/styling.rs:112
↓ 3 callers
Method
vals_flatten
(&self)
clap_builder/src/parser/matches/matched_arg.rs:86
↓ 3 callers
Method
visible_long_flag_alias
(mut self, name: impl IntoResettable<Str>)
clap_builder/src/builder/command.rs:2954
↓ 3 callers
Method
visible_long_flag_aliases
( mut self, names: impl IntoIterator<Item = impl Into<Str>>, )
clap_builder/src/builder/command.rs:3048
↓ 3 callers
Method
visible_short_flag_aliases
(mut self, names: impl IntoIterator<Item = char>)
clap_builder/src/builder/command.rs:3023
↓ 3 callers
Method
with_content
(mut self, content: StyledStr)
clap_builder/src/output/fmt.rs:27
↓ 3 callers
Method
write_arg_usage
(&self, styled: &mut StyledStr, used: &[Id], incl_reqs: bool)
clap_builder/src/output/usage.rs:151
↓ 3 callers
Method
write_args
Sorts arguments by length and display order and write their help to the wrapped stream.
clap_builder/src/output/help_template.rs:470
↓ 3 callers
Method
write_usage_no_title
Creates a usage string (*without title*) if one was not provided by the user manually.
clap_builder/src/output/usage.rs:75
↓ 2 callers
Method
_build_subcommand
(&mut self, name: &str)
clap_builder/src/builder/command.rs:4491
↓ 2 callers
Method
_propagate_subcommand
(&self, sc: &mut Self)
clap_builder/src/builder/command.rs:4780
↓ 2 callers
Method
_render_authors_section
(&self, roff: &mut Roff)
clap_mangen/src/lib.rs:327
↓ 2 callers
Method
_render_description_section
(&self, roff: &mut Roff)
clap_mangen/src/lib.rs:234
↓ 2 callers
Method
_render_extra_section
(&self, roff: &mut Roff)
clap_mangen/src/lib.rs:302
↓ 2 callers
Method
_render_name_section
(&self, roff: &mut Roff)
clap_mangen/src/lib.rs:210
↓ 2 callers
Method
_render_options_section
(&self, roff: &mut Roff)
clap_mangen/src/lib.rs:246
↓ 2 callers
Method
_render_subcommands_section
(&self, roff: &mut Roff)
clap_mangen/src/lib.rs:289
↓ 2 callers
Method
_render_synopsis_section
(&self, roff: &mut Roff)
clap_mangen/src/lib.rs:222
↓ 2 callers
Method
_render_title
(&self, roff: &mut Roff)
clap_mangen/src/lib.rs:188
↓ 2 callers
Method
_render_version_section
(&self, roff: &mut Roff)
clap_mangen/src/lib.rs:314
↓ 2 callers
Method
add_prefix
Add a prefix to the value of completion candidate This is generally used for post-process by [`complete`][crate::engine::complete()] for things like
clap_complete/src/engine/candidate.rs:67
↓ 2 callers
Method
after_long_help
(mut self, help: impl IntoResettable<StyledStr>)
clap_builder/src/builder/command.rs:2049
↓ 2 callers
Method
aliases_to
(&self, name: impl AsRef<std::ffi::OsStr>)
clap_builder/src/builder/command.rs:4981
↓ 2 callers
Method
all_subcommand_names
Iterate through all the names of all subcommands (not recursively), including aliases. Used for suggestions.
clap_builder/src/builder/command.rs:5028
↓ 2 callers
Function
all_subcommands
(cmd: &Command, parent_fn_name: &str)
clap_complete/src/aot/shells/bash.rs:91
↓ 2 callers
Method
allow_negative_numbers
(self, yes: bool)
clap_builder/src/builder/arg.rs:1575
↓ 2 callers
Method
and_suggest
Extend the suggestions
clap_builder/src/builder/value_parser.rs:2182
↓ 2 callers
Method
append_val
(&mut self, val: AnyValue, raw_val: OsString)
clap_builder/src/parser/matches/matched_arg.rs:116
↓ 2 callers
Method
apply_styles
(&mut self)
clap_derive/src/utils/doc_comments.rs:207
↓ 2 callers
Function
arg_conflicts
(cmd: &Command, arg: &Arg, app_global: Option<&Command>)
clap_complete/src/aot/shells/zsh.rs:508
↓ 2 callers
Method
args
(&self)
clap_bench/benches/complex.rs:125
↓ 2 callers
Method
as_ref
(&self)
clap_builder/src/builder/os_str.rs:171
↓ 2 callers
Method
attr_kind
(&self)
clap_derive/src/item.rs:1235
↓ 2 callers
Method
before_help
(mut self, help: impl IntoResettable<StyledStr>)
clap_builder/src/builder/command.rs:2070
↓ 2 callers
Function
build_help
Build the help text of an application.
clap_bench/benches/ripgrep.rs:276
↓ 2 callers
Method
candidates
All potential candidates for an argument. See [`CompletionCandidate`] for more information.
clap_complete/src/engine/custom.rs:156
↓ 2 callers
Function
cli
()
examples/git.rs:7
↓ 2 callers
Function
cmd
()
examples/tutorial_builder/05_01_assert.rs:13
↓ 2 callers
Function
cmd
Build a clap application parameterized by usage strings. The function given should take a clap argument name and return a help string. `cmd` will pan
clap_bench/benches/ripgrep.rs:288
↓ 2 callers
Method
cmp
(&self, other: &Self)
clap_builder/src/builder/debug_asserts.rs:432
↓ 2 callers
Function
common_app
()
clap_complete/src/aot/generator/utils.rs:150
↓ 2 callers
Method
complete
Process the completion request and exit Warning:** `stdout` should not be written to before this has had a chance to run.
clap_complete/src/env/mod.rs:185
↓ 2 callers
Function
complete_arg_value
( value: Result<&str, &OsStr>, arg: &clap::Arg, current_dir: Option<&std::path::Path>, arg_ind
clap_complete/src/engine/complete.rs:346
↓ 2 callers
Function
complete_candidates_str
( value: &str, mut values: Vec<CompletionCandidate>, )
clap_complete/src/engine/complete.rs:456
↓ 2 callers
Function
complete_path
( value_os: &OsStr, current_dir: Option<&std::path::Path>, is_wanted: &dyn Fn(&std::path::Path) ->
clap_complete/src/engine/custom.rs:327
↓ 2 callers
Method
completer
Override the binary to call to get completions Default: `args_os()[0]`
clap_complete/src/env/mod.rs:168
↓ 2 callers
Method
conflicts_with_all
(mut self, ns: impl IntoIterator<Item = impl Into<Id>>)
clap_builder/src/builder/arg_group.rs:508
↓ 2 callers
Method
contains_key
(&self, key: &Q)
clap_builder/src/util/flat_map.rs:42
↓ 2 callers
Method
current_dir
Override [`std::env::current_dir`]
clap_complete/src/engine/custom.rs:299
↓ 2 callers
Function
default_action
(field_type: &Type, span: Span)
clap_derive/src/item.rs:1178
↓ 2 callers
Function
default_value_parser
(inner_type: &Type, span: Span)
clap_derive/src/item.rs:1146
↓ 2 callers
Function
did_you_mean
(v: &str, possible_values: I)
clap_builder/src/parser/features/suggestions.rs:8
↓ 2 callers
Function
did_you_mean
(styled: &mut StyledStr, styles: &Styles, context: &str, possibles: &ContextValue)
clap_builder/src/error/format.rs:471
↓ 2 callers
Method
display_name
(mut self, name: impl IntoResettable<String>)
clap_builder/src/builder/command.rs:1918
↓ 2 callers
Method
display_order
Sort weight within a [`CompletionCandidate::tag`]
clap_complete/src/engine/candidate.rs:50
↓ 2 callers
Method
end_bound
(&self)
clap_builder/src/builder/range.rs:129
↓ 2 callers
Method
endline
(&mut self)
clap_derive/src/utils/doc_comments.rs:161
↓ 2 callers
Function
eq_ignore_case
(left: &str, right: &str)
clap_builder/src/util/mod.rs:35
↓ 2 callers
Function
escape_help
Escape help string inside single quotes and brackets
clap_complete/src/aot/shells/zsh.rs:430
↓ 2 callers
Function
escape_help
(help: Option<&StyledStr>, data: T)
clap_complete/src/aot/shells/powershell.rs:69
↓ 2 callers
Function
escape_string
Escape string inside single quotes
clap_complete/src/aot/shells/fish.rs:55
↓ 2 callers
Method
extend_unchecked
(&mut self, iter: impl IntoIterator<Item = (K, V)>)
clap_builder/src/util/flat_map.rs:36
← previous
next →
401–500 of 3,258, ranked by callers