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
↓ 16 callers
Method
infer_subcommands
(self, yes: bool)
clap_builder/src/builder/command.rs:1840
↓ 16 callers
Method
subcommand_required
If no [`subcommand`] is present at runtime, error and exit gracefully. # Examples ```rust # use clap_builder as clap; # use clap::{Command, error::E
clap_builder/src/builder/command.rs:3153
↓ 16 callers
Method
unset_global_setting
(mut self, setting: AppSettings)
clap_builder/src/builder/command.rs:2342
↓ 15 callers
Function
complex_app
()
tests/builder/utils.rs:61
↓ 15 callers
Method
default_missing_value
(mut self, val: impl IntoResettable<OsStr>)
clap_builder/src/builder/arg.rs:1993
↓ 15 callers
Method
flatten_help
(self, yes: bool)
clap_builder/src/builder/command.rs:2355
↓ 15 callers
Method
get_bin_name
(&self)
clap_builder/src/builder/command.rs:3739
↓ 15 callers
Method
get_short
(&self)
clap_builder/src/builder/arg.rs:4222
↓ 15 callers
Method
insert_context_unchecked
( mut self, kind: ContextKind, value: ContextValue, )
clap_builder/src/error/mod.rs:342
↓ 15 callers
Method
long_about
(mut self, long_about: impl IntoResettable<StyledStr>)
clap_builder/src/builder/command.rs:2002
↓ 15 callers
Method
next_help_heading
(&self)
clap_derive/src/item.rs:1021
↓ 14 callers
Method
extend_context_unchecked
( mut self, context: [(ContextKind, ContextValue); N], )
clap_builder/src/error/mod.rs:354
↓ 14 callers
Method
get
(&self, arg: &Id)
clap_builder/src/parser/arg_matcher.rs:93
↓ 14 callers
Method
is_empty
(&self)
clap_builder/src/builder/styled_str.rs:124
↓ 14 callers
Method
render_help
Render the short help message (`-h`) to a [`StyledStr`] See also [`Command::render_long_help`]. Note:** this will ensure the `Command` has been suff
clap_builder/src/builder/command.rs:1004
↓ 14 callers
Method
setting
(mut self, setting: AppSettings)
clap_builder/src/builder/command.rs:2320
↓ 14 callers
Method
span
(&self)
clap_derive/src/item.rs:1138
↓ 14 callers
Method
value_parser
()
examples/typed-derive/custom.rs:50
↓ 14 callers
Method
visible_short_alias
(mut self, name: impl IntoResettable<char>)
clap_builder/src/builder/arg.rs:404
↓ 13 callers
Method
_build_self
(&mut self, expand_help_tree: bool)
clap_builder/src/builder/command.rs:4393
↓ 13 callers
Method
aliases
(mut self, names: impl IntoIterator<Item = impl Into<Str>>)
clap_builder/src/builder/arg.rs:317
↓ 13 callers
Method
as_ref
(&self)
clap_derive/src/utils/spanned.rs:73
↓ 13 callers
Method
debug_assert
(mut self)
clap_builder/src/builder/command.rs:620
↓ 13 callers
Method
find_subcommand
(&self, name: impl AsRef<std::ffi::OsStr>)
clap_builder/src/builder/command.rs:3988
↓ 13 callers
Method
get_about
(&self)
clap_builder/src/builder/command.rs:3813
↓ 13 callers
Method
get_matches_from
Parse the specified arguments, [exiting][Error::exit] on failure. <div class="warning"> NOTE:** The first argument will be parsed as the binary name
clap_builder/src/builder/command.rs:758
↓ 13 callers
Method
long_help
(mut self, h: impl IntoResettable<StyledStr>)
clap_builder/src/builder/arg.rs:2346
↓ 13 callers
Method
push_styled
(&mut self, other: &Self)
clap_builder/src/builder/styled_str.rs:143
↓ 13 callers
Method
unset_setting
(mut self, setting: AppSettings)
clap_builder/src/builder/command.rs:2327
↓ 12 callers
Method
arg_required_else_help
(self, yes: bool)
clap_builder/src/builder/command.rs:2411
↓ 12 callers
Method
check_explicit
(&self, arg: &Id, predicate: &ArgPredicate)
clap_builder/src/parser/arg_matcher.rs:129
↓ 12 callers
Method
create_usage_with_title
Creates a usage string for display. This happens just after all arguments were parsed, but before any subcommands have been parsed (so as to give subc
clap_builder/src/output/usage.rs:41
↓ 12 callers
Method
default_values_if
( mut self, arg_id: impl Into<Id>, predicate: impl Into<ArgPredicate>, default
clap_builder/src/builder/arg.rs:3110
↓ 12 callers
Method
disable_version_flag
(self, yes: bool)
clap_builder/src/builder/command.rs:1493
↓ 12 callers
Method
exit
Prints the error and exits. Depending on the error kind, this either prints to `stderr` and exits with a status of `2` or prints to `stdout` and exit
clap_builder/src/error/mod.rs:245
↓ 12 callers
Method
get_help
Get the help message of the completion candidate
clap_complete/src/engine/candidate.rs:84
↓ 12 callers
Method
hide
Set the visibility of the completion candidate Only shown when there is no visible candidate for completing the current argument.
clap_complete/src/engine/candidate.rs:58
↓ 12 callers
Method
is_last_set
Reports whether [`Arg::last`] is set
clap_builder/src/builder/arg.rs:4554
↓ 12 callers
Method
required_unless_present_any
( mut self, names: impl IntoIterator<Item = impl Into<Id>>, )
clap_builder/src/builder/arg.rs:3517
↓ 12 callers
Method
takes_values
Report whether the argument takes any values (ie is a flag) # Examples ```rust # use clap_builder as clap; # use clap::builder::ValueRange; let rang
clap_builder/src/builder/range.rs:99
↓ 11 callers
Method
defer
(&self)
clap_derive/src/item.rs:1106
↓ 11 callers
Method
get_literal
(&self)
clap_builder/src/builder/styling.rs:165
↓ 11 callers
Method
is_positional
Checks whether this argument is a positional or not. # Examples ```rust # use clap_builder as clap; # use clap::Arg; let arg = Arg::new("foo"); asse
clap_builder/src/builder/arg.rs:4431
↓ 11 callers
Method
required_unless_present
(mut self, arg_id: impl IntoResettable<Id>)
clap_builder/src/builder/arg.rs:3348
↓ 11 callers
Method
trailing_var_arg
This is a "var arg" and everything that follows should be captured by it, as if the user had used a `--`. <div class="warning"> NOTE:** To start the
clap_builder/src/builder/arg.rs:580
↓ 11 callers
Method
try_update_from
Update from iterator, return Err on error.
clap_builder/src/derive.rs:101
↓ 11 callers
Method
value_terminator
(mut self, term: impl IntoResettable<Str>)
clap_builder/src/builder/arg.rs:1745
↓ 10 callers
Method
args
(mut self, args: impl IntoIterator<Item = impl Into<Arg>>)
clap_builder/src/builder/command.rs:207
↓ 10 callers
Function
basic_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:4
↓ 10 callers
Function
common
()
tests/builder/version.rs:6
↓ 10 callers
Method
contains_id
Check if values are present for the argument or group id <div class="warning"> NOTE:* This will always return `true` if [`default_value`] has been s
clap_builder/src/parser/matches/arg_matches.rs:523
↓ 10 callers
Method
exclusive
(self, yes: bool)
clap_builder/src/builder/arg.rs:869
↓ 10 callers
Method
get_index
(&self)
clap_builder/src/builder/arg.rs:4367
↓ 10 callers
Method
has_subcommands
(&self)
clap_builder/src/builder/command.rs:3944
↓ 10 callers
Method
ignore_errors
(self, yes: bool)
clap_builder/src/builder/command.rs:1225
↓ 10 callers
Method
insert
(&mut self, kind: ContextKind, value: ContextValue)
clap_builder/src/error/mod.rs:202
↓ 10 callers
Method
is_positional
(&self)
clap_derive/src/item.rs:1084
↓ 10 callers
Method
multicall
(self, yes: bool)
clap_builder/src/builder/command.rs:3568
↓ 10 callers
Method
required_if_eq
(mut self, arg_id: impl Into<Id>, val: impl Into<OsStr>)
clap_builder/src/builder/arg.rs:3607
↓ 10 callers
Method
trim_end
(&mut self)
clap_builder/src/builder/styled_str.rs:59
↓ 9 callers
Method
as_str
Get the raw string of the `Id`
clap_builder/src/util/id.rs:23
↓ 9 callers
Function
assert_matches
( expected: impl IntoData, generator: impl clap_complete::Generator, mut cmd: Command, name: &
clap_complete_nushell/tests/common.rs:329
↓ 9 callers
Method
contains
(&self, req: &T)
clap_builder/src/util/graph.rs:46
↓ 9 callers
Method
find_group
(&self, group_id: &Id)
clap_builder/src/builder/command.rs:5022
↓ 9 callers
Function
generate
Generate a completions file for a specified shell at runtime. Until `cargo install` can install extra files like a completion script, this may be use
clap_complete/src/aot/generator/mod.rs:284
↓ 9 callers
Function
get_app
()
tests/builder/propagate_globals.rs:3
↓ 9 callers
Function
get_matches
(cmd: Command, argv: &'static str)
tests/builder/propagate_globals.rs:23
↓ 9 callers
Method
is_takes_value_set
(&self)
clap_builder/src/builder/arg.rs:4444
↓ 9 callers
Method
kind
(&self)
clap_derive/src/item.rs:1080
↓ 9 callers
Function
occurrences_as_vec_vec
(m: &'a ArgMatches, name: &str)
tests/builder/occurrences.rs:3
↓ 8 callers
Method
after_help
(mut self, help: impl IntoResettable<StyledStr>)
clap_builder/src/builder/command.rs:2025
↓ 8 callers
Method
allow_missing_positional
(self, yes: bool)
clap_builder/src/builder/command.rs:2570
↓ 8 callers
Method
args
(&self)
clap_builder/src/parser/arg_matcher.rs:113
↓ 8 callers
Method
disable_help_subcommand
(self, yes: bool)
clap_builder/src/builder/command.rs:1647
↓ 8 callers
Function
empty_args
()
tests/builder/help.rs:16
↓ 8 callers
Function
from_arg_matches
(name: &Ident)
clap_derive/src/dummies.rs:32
↓ 8 callers
Method
get_long_about
(&self)
clap_builder/src/builder/command.rs:3821
↓ 8 callers
Method
get_long_and_visible_aliases
(&self)
clap_builder/src/builder/arg.rs:4295
↓ 8 callers
Method
get_short_and_visible_aliases
(&self)
clap_builder/src/builder/arg.rs:4254
↓ 8 callers
Method
get_styles
(&self)
clap_builder/src/builder/command.rs:3926
↓ 8 callers
Method
get_value_hint
Get the value hint of this argument
clap_builder/src/builder/arg.rs:4372
↓ 8 callers
Method
help_expected
(self, yes: bool)
clap_builder/src/builder/command.rs:1727
↓ 8 callers
Method
hide_possible_values
(self, yes: bool)
clap_builder/src/builder/arg.rs:2570
↓ 8 callers
Method
is_required_set
Reports whether [`Arg::required`] is set
clap_builder/src/builder/arg.rs:4436
↓ 8 callers
Method
multiple
(mut self, yes: bool)
clap_builder/src/builder/arg_group.rs:244
↓ 8 callers
Method
set
(&mut self, s: AppSettings)
clap_builder/src/builder/command.rs:4962
↓ 8 callers
Method
short_alias
(mut self, name: impl IntoResettable<char>)
clap_builder/src/builder/arg.rs:284
↓ 7 callers
Method
bin_name
(mut self, name: impl IntoResettable<String>)
clap_builder/src/builder/command.rs:1901
↓ 7 callers
Method
cased_name
(&self)
clap_derive/src/item.rs:1030
↓ 7 callers
Function
command
()
clap_complete/examples/dynamic.rs:1
↓ 7 callers
Method
contains
(&self, arg: &Id)
clap_builder/src/parser/arg_matcher.rs:105
↓ 7 callers
Function
display_width
(text: &str)
clap_builder/src/output/textwrap/core.rs:55
↓ 7 callers
Function
feature_sample_command
(name: &'static str)
clap_complete/tests/testsuite/common.rs:29
↓ 7 callers
Function
find_subcommand_with_path
Finds the subcommand [`clap::Command`] from the given [`clap::Command`] with the given path. <div class="warning"> NOTE:** `path` should not contain
clap_complete/src/aot/generator/utils.rs:26
↓ 7 callers
Method
get_action
Behavior when parsing the argument
clap_builder/src/builder/arg.rs:4461
↓ 7 callers
Method
get_keymap
(&self)
clap_builder/src/builder/command.rs:4328
↓ 7 callers
Method
get_possible_values
Get the names of possible values for this argument. Only useful for user facing applications, such as building help messages or man files
clap_builder/src/builder/arg.rs:4320
↓ 7 callers
Method
get_value_parser
Configured parser for argument values # Example ```rust # use clap_builder as clap; let cmd = clap::Command::new("raw") .arg( clap::Arg::new("port")
clap_builder/src/builder/arg.rs:4482
↓ 7 callers
Method
get_visible_aliases
(&self)
clap_builder/src/builder/arg.rs:4270
↓ 7 callers
Method
ignore_case
(self, yes: bool)
clap_builder/src/builder/arg.rs:1465
← previous
next →
101–200 of 3,258, ranked by callers