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
↓ 1 callers
Function
process_author_str
replace all `:` with `, ` when not inside the `<>` `"author1:author2:author3" => "author1, author2, author3"` `"author1 <http://website1.com>:author2
clap_derive/src/item.rs:1391
↓ 1 callers
Method
propagate_globals
(&mut self, global_arg_vec: &[Id])
clap_builder/src/parser/arg_matcher.rs:47
↓ 1 callers
Function
push_args
()
examples/git.rs:57
↓ 1 callers
Function
push_conflicts
(conflicts: &[&Arg], res: &mut Vec<String>)
clap_complete/src/aot/shells/zsh.rs:509
↓ 1 callers
Method
push_index
(&mut self, index: usize)
clap_builder/src/parser/matches/matched_arg.rs:74
↓ 1 callers
Method
push_method
(&mut self, kind: AttrKind, name: Ident, arg: impl ToTokens)
clap_derive/src/item.rs:292
↓ 1 callers
Method
push_method_
(&mut self, kind: AttrKind, name: Ident, arg: TokenStream)
clap_derive/src/item.rs:296
↓ 1 callers
Function
quoting_command
(name: &'static str)
clap_complete_nushell/tests/common.rs:76
↓ 1 callers
Function
quoting_command
(name: &'static str)
clap_mangen/tests/testsuite/common.rs:74
↓ 1 callers
Method
raw
Create an unformatted error This is for you need to pass the error up to a place that has access to the `Command` at which point you can call [`Error
clap_builder/src/error/mod.rs:88
↓ 1 callers
Method
raw_vals
(&self)
clap_builder/src/parser/matches/matched_arg.rs:94
↓ 1 callers
Method
react
( &self, ident: Option<Identifier>, source: ValueSource, arg: &Arg, mu
clap_builder/src/parser/parser.rs:1140
↓ 1 callers
Function
readline
()
examples/repl-derive.rs:59
↓ 1 callers
Function
readline
()
examples/repl.rs:84
↓ 1 callers
Method
register
(&mut self, name: &str, content: &str)
clap_complete_nushell/tests/common.rs:441
↓ 1 callers
Method
register
(&mut self, name: &str, content: &str)
clap_complete/tests/testsuite/common.rs:456
↓ 1 callers
Method
remove
(&mut self, key: &Q)
clap_builder/src/util/flat_map.rs:55
↓ 1 callers
Method
remove_by_name
Remove an arg in the graph by Id, usually used by `mut_arg`. Return `Some(arg)` if removed.
clap_builder/src/mkeymap.rs:147
↓ 1 callers
Method
remove_overrides
(&self, arg: &Arg, matcher: &mut ArgMatcher)
clap_builder/src/parser/parser.rs:1390
↓ 1 callers
Function
remove_period
(mut s: String)
clap_derive/src/utils/doc_comments.rs:102
↓ 1 callers
Method
remove_prefix
(&mut self, quote_prefix: &str)
clap_derive/src/utils/doc_comments.rs:217
↓ 1 callers
Method
render_arg_val
Write the values such as `<name1> <name2>`
clap_builder/src/builder/arg.rs:4707
↓ 1 callers
Function
render_synopsis_arg
(arg: &Arg)
clap_mangen/src/render.rs:163
↓ 1 callers
Function
render_synopsis_option
(line: &mut Vec<Inline>, opt: &Arg)
clap_mangen/src/render.rs:111
↓ 1 callers
Function
required_group_command
(name: &'static str)
clap_mangen/tests/testsuite/common.rs:513
↓ 1 callers
Function
required_group_with_required_option_command
(name: &'static str)
clap_mangen/tests/testsuite/common.rs:533
↓ 1 callers
Method
reset
(&mut self)
clap_derive/src/utils/doc_comments.rs:203
↓ 1 callers
Method
resolve_pending
(&self, matcher: &mut ArgMatcher)
clap_builder/src/parser/parser.rs:1118
↓ 1 callers
Function
respond
(line: &str)
examples/repl-derive.rs:29
↓ 1 callers
Function
respond
(line: &str)
examples/repl.rs:29
↓ 1 callers
Function
rsplit_delimiter
( value: Result<&'s str, &'o OsStr>, delimiter: Option<char>, )
clap_complete/src/engine/complete.rs:434
↓ 1 callers
Method
set_color
(mut self, color_when: ColorChoice)
clap_builder/src/error/mod.rs:324
↓ 1 callers
Method
set_colored_help
(mut self, color_help_when: ColorChoice)
clap_builder/src/error/mod.rs:329
↓ 1 callers
Method
set_help_flag
(mut self, help_flag: Option<Cow<'static, str>>)
clap_builder/src/error/mod.rs:334
↓ 1 callers
Method
set_kind
(&mut self, kind: Sp<Kind>)
clap_derive/src/item.rs:949
↓ 1 callers
Method
set_source
(mut self, source: Box<dyn error::Error + Send + Sync>)
clap_builder/src/error/mod.rs:314
↓ 1 callers
Method
set_styles
(mut self, styles: Styles)
clap_builder/src/error/mod.rs:319
↓ 1 callers
Method
short
Writes argument's short command to the wrapped stream.
clap_builder/src/output/help_template.rs:538
↓ 1 callers
Method
short_flag_aliases_to
(&self, flag: char)
clap_builder/src/builder/command.rs:4989
↓ 1 callers
Function
shorts_and_visible_aliases
Gets all the short options, their visible aliases and flags of a [`clap::Command`]. Includes `h` and `V` depending on the [`clap::Command`] settings.
clap_complete/src/engine/complete.rs:536
↓ 1 callers
Function
single_line_styled_str
(text: &StyledStr)
clap_complete_nushell/src/lib.rs:254
↓ 1 callers
Function
single_required_group_command
(name: &'static str)
clap_mangen/tests/testsuite/common.rs:559
↓ 1 callers
Function
singular_or_plural
Returns the singular or plural form on the verb to be based on the argument's value.
clap_builder/src/error/format.rs:416
↓ 1 callers
Function
source_under_posix_mode
(script: &std::path::Path)
clap_complete/tests/testsuite/bash.rs:223
↓ 1 callers
Function
special_commands_command
(name: &'static str)
clap_complete_nushell/tests/common.rs:57
↓ 1 callers
Function
special_commands_command
(name: &'static str)
clap_mangen/tests/testsuite/common.rs:59
↓ 1 callers
Function
split_file_name
(path: &std::path::Path)
clap_complete/src/engine/custom.rs:408
↓ 1 callers
Function
split_nonutf8_once
(b: &OsStr)
clap_lex/src/lib.rs:479
↓ 1 callers
Function
split_paragraphs
(lines: &[String])
clap_derive/src/utils/doc_comments.rs:77
↓ 1 callers
Method
start_custom_group
(&mut self, id: Id, source: ValueSource)
clap_builder/src/parser/arg_matcher.rs:144
↓ 1 callers
Method
start_link
(&mut self, dest_url: pulldown_cmark::CowStr<'_>)
clap_derive/src/utils/doc_comments.rs:184
↓ 1 callers
Method
start_occurrence_of_external
(&mut self, cmd: &Command)
clap_builder/src/parser/arg_matcher.rs:152
↓ 1 callers
Method
start_style
(&mut self, style: Style)
clap_derive/src/utils/doc_comments.rs:191
↓ 1 callers
Method
start_trailing
(&mut self)
clap_builder/src/parser/arg_matcher.rs:220
↓ 1 callers
Method
stdio
Include stdio (`-`)
clap_complete/src/engine/custom.rs:284
↓ 1 callers
Function
str_to_bool
Converts a string literal representation of truth to true or false. `false` values are `n`, `no`, `f`, `false`, `off`, and `0` (case insensitive). A
clap_builder/src/util/str_to_bool.rs:12
↓ 1 callers
Function
sub_subcommands_command
(name: &'static str)
clap_complete_nushell/tests/common.rs:150
↓ 1 callers
Method
subcmd
Writes subcommand to the wrapped stream.
clap_builder/src/output/help_template.rs:1073
↓ 1 callers
Function
subcommand
(input: TokenStream)
clap_derive/src/lib.rs:87
↓ 1 callers
Method
subcommand_internal
(mut self, mut subcmd: Self)
clap_builder/src/builder/command.rs:532
↓ 1 callers
Function
subcommand_markers
(cmd: &clap::Command)
clap_mangen/src/render.rs:381
↓ 1 callers
Method
subcommand_next_line_help
(&self, cmd: &Command, spec_vals: &str, longest: usize)
clap_builder/src/output/help_template.rs:1053
↓ 1 callers
Function
subcommand_sort_key
(command: &clap::Command)
clap_mangen/src/render.rs:508
↓ 1 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/engine/complete.rs:584
↓ 1 callers
Function
subcommands
(roff: &mut Roff, cmd: &clap::Command, section: &str)
clap_mangen/src/render.rs:341
↓ 1 callers
Function
synopsis
(roff: &mut Roff, cmd: &clap::Command)
clap_mangen/src/render.rs:32
↓ 1 callers
Method
take_pending
(&mut self)
clap_builder/src/parser/arg_matcher.rs:227
↓ 1 callers
Method
title_args
Turn metadata into arguments for a .TH macro.
clap_mangen/src/lib.rs:193
↓ 1 callers
Method
translate_char
(self, style: CasingStyle)
clap_derive/src/item.rs:1486
↓ 1 callers
Method
trim_start_lines
(&mut self)
clap_builder/src/builder/styled_str.rs:50
↓ 1 callers
Method
try_clear_id
Clears the values for the given `id` Alternative to [`try_remove_*`][ArgMatches::try_remove_one] when the type is not known. Returns `Err([``Matches
clap_builder/src/parser/matches/arg_matches.rs:1234
↓ 1 callers
Method
try_complete
Process the completion request Warning:** `stdout` should not be written to before or after this has run. Returns `true` if a command was completed
clap_complete/src/env/mod.rs:202
↓ 1 callers
Method
try_complete_
( self, mut args: Vec<OsString>, current_dir: Option<&std::path::Path>, )
clap_complete/src/env/mod.rs:210
↓ 1 callers
Method
try_contains_id
Non-panicking version of [`ArgMatches::contains_id`]
clap_builder/src/parser/matches/arg_matches.rs:1220
↓ 1 callers
Method
try_generate
( &self, cmd: &Command, buf: &mut dyn std::io::Write, )
clap_complete_nushell/src/lib.rs:43
↓ 1 callers
Method
try_generate
(&self, cmd: &Command, buf: &mut dyn Write)
clap_complete/src/aot/shells/bash.rs:24
↓ 1 callers
Method
try_generate
(&self, cmd: &clap::Command, buf: &mut dyn std::io::Write)
clap_complete/src/aot/shells/shell.rs:89
↓ 1 callers
Method
try_generate
(&self, cmd: &Command, buf: &mut dyn Write)
clap_complete/src/aot/shells/zsh.rs:22
↓ 1 callers
Method
try_generate
(&self, cmd: &Command, buf: &mut dyn Write)
clap_complete/src/aot/shells/fish.rs:23
↓ 1 callers
Method
try_generate
(&self, cmd: &Command, buf: &mut dyn Write)
clap_complete/src/aot/shells/powershell.rs:23
↓ 1 callers
Method
try_generate
(&self, cmd: &Command, buf: &mut dyn Write)
clap_complete/src/aot/shells/elvish.rs:23
↓ 1 callers
Method
try_get_many
Non-panicking version of [`ArgMatches::get_many`]
clap_builder/src/parser/matches/arg_matches.rs:1099
↓ 1 callers
Method
try_get_occurrences
Non-panicking version of [`ArgMatches::get_occurrences`]
clap_builder/src/parser/matches/arg_matches.rs:1118
↓ 1 callers
Method
try_get_one
Non-panicking version of [`ArgMatches::get_one`]
clap_builder/src/parser/matches/arg_matches.rs:1081
↓ 1 callers
Method
try_get_raw
Non-panicking version of [`ArgMatches::get_raw`]
clap_builder/src/parser/matches/arg_matches.rs:1135
↓ 1 callers
Method
try_get_raw_occurrences
Non-panicking version of [`ArgMatches::get_raw_occurrences`]
clap_builder/src/parser/matches/arg_matches.rs:1150
↓ 1 callers
Method
try_remove_many
Non-panicking version of [`ArgMatches::remove_many`]
clap_builder/src/parser/matches/arg_matches.rs:1183
↓ 1 callers
Method
try_remove_occurrences
Non-panicking version of [`ArgMatches::remove_occurrences`]
clap_builder/src/parser/matches/arg_matches.rs:1202
↓ 1 callers
Method
try_remove_one
Non-panicking version of [`ArgMatches::remove_one`]
clap_builder/src/parser/matches/arg_matches.rs:1168
↓ 1 callers
Method
try_str
(&self)
clap_lex/src/ext.rs:186
↓ 1 callers
Method
two_args_of
(&self, condition: F)
clap_builder/src/builder/command.rs:4717
↓ 1 callers
Method
ty
(&self)
clap_derive/src/item.rs:1248
↓ 1 callers
Function
unroll_group_args
(cmd: &'a clap::Command, group: &clap::Id)
clap_mangen/src/render.rs:140
↓ 1 callers
Method
update
(&mut self, other: &Self)
clap_builder/src/builder/ext.rs:36
↓ 1 callers
Method
update_from_arg_matches
(&mut self, matches: &ArgMatches)
clap_builder/src/derive.rs:358
↓ 1 callers
Method
update_from_arg_matches_mut
(&mut self, matches: &mut ArgMatches)
examples/derive_ref/flatten_hand_args.rs:27
↓ 1 callers
Method
validate
(&mut self, matcher: &mut ArgMatcher)
clap_builder/src/parser/validator.rs:24
↓ 1 callers
Method
vals
(&self)
clap_builder/src/parser/matches/matched_arg.rs:78
↓ 1 callers
Function
value_completion
Uses either `possible_vals` or `value_hint` to give hints about possible argument values
clap_complete/src/aot/shells/zsh.rs:367
↓ 1 callers
Function
value_completion
(option: &Arg)
clap_complete/src/aot/shells/fish.rs:280
← previous
next →
901–1,000 of 3,258, ranked by callers