MCPcopy Create free account

hub / github.com/clap-rs/clap / functions

Functions3,258 in github.com/clap-rs/clap

↓ 1 callersFunctioncomplete_arg
( arg: &clap_lex::ParsedArg<'_>, cmd: &clap::Command, current_dir: Option<&std::path::Path>, p
clap_complete/src/engine/complete.rs:137
↓ 1 callersMethodcomplete_at
Candidates that match `current` at `arg_index` within the current occurrence. `arg_index` is the position of the value being completed within an argu
clap_complete/src/engine/custom.rs:75
↓ 1 callersFunctioncomplete_option
( arg: &clap_lex::ParsedArg<'_>, cmd: &clap::Command, current_dir: Option<&std::path::Path>, )
clap_complete/src/engine/complete.rs:246
↓ 1 callersFunctioncomplete_subcommand
(value: &str, cmd: &clap::Command)
clap_complete/src/engine/complete.rs:475
↓ 1 callersFunctioncomplete_value_candidates
( value: &OsStr, completer: &dyn ValueCandidates, )
clap_complete/src/engine/complete.rs:445
↓ 1 callersFunctioncomplete_value_candidates_str
( value: &str, completer: &dyn ValueCandidates, )
clap_complete/src/engine/complete.rs:466
↓ 1 callersMethodcompleter_for_path
Find an [`EnvCompleter`] for the specified path to a shell.
clap_complete/src/env/mod.rs:304
↓ 1 callersMethodcontains_short
(&self, s: char)
clap_builder/src/builder/command.rs:4952
↓ 1 callersMethodcontext
(&self)
clap_builder/src/error/mod.rs:186
↓ 1 callersMethodcontext_value
(mut self, style: Style)
clap_builder/src/builder/styling.rs:137
↓ 1 callersFunctioncount_required_group_command
(name: &'static str)
clap_mangen/tests/testsuite/common.rs:592
↓ 1 callersMethodcreate_usage_no_title
Creates a usage string (*without title*) if one was not provided by the user manually.
clap_builder/src/output/usage.rs:61
↓ 1 callersMethoddefault_missing_values
(self, vals: impl IntoIterator<Item = impl Into<OsStr>>)
clap_builder/src/builder/arg.rs:2021
↓ 1 callersMethoddefault_num_args
(&self)
clap_builder/src/builder/action.rs:389
↓ 1 callersMethoddefault_value_parser
(&self)
clap_builder/src/builder/action.rs:431
↓ 1 callersFunctionderive_args
(input: &DeriveInput)
clap_derive/src/derives/args.rs:25
↓ 1 callersFunctionderive_parser
(input: &DeriveInput)
clap_derive/src/derives/parser.rs:29
↓ 1 callersFunctionderive_subcommand
(input: &DeriveInput)
clap_derive/src/derives/subcommand.rs:24
↓ 1 callersFunctionderive_value_enum
(input: &DeriveInput)
clap_derive/src/derives/value_enum.rs:18
↓ 1 callersFunctiondescription
(roff: &mut Roff, cmd: &clap::Command)
clap_mangen/src/render.rs:20
↓ 1 callersFunctiondetect_duplicate_flags
(flags: &[Flag<'_>], short_or_long: &str)
clap_builder/src/builder/debug_asserts.rs:448
↓ 1 callersMethoddid_you_mean_error
Is only used for the long flag(which is the only one needs fuzzy searching)
clap_builder/src/parser/parser.rs:1552
↓ 1 callersFunctiondid_you_mean_flag
Returns a suffix that can be empty, or is the standard 'did you mean' phrase
clap_builder/src/parser/features/suggestions.rs:49
↓ 1 callersFunctiondimensions
()
clap_builder/src/output/help_template.rs:1119
↓ 1 callersMethoddowncast_into
(self)
clap_builder/src/util/any_value.rs:22
↓ 1 callersMethoddowncast_ref
( &self, )
clap_builder/src/util/any_value.rs:16
↓ 1 callersFunctionempty
()
clap_bench/benches/rustup.rs:18
↓ 1 callersMethodend_link
(&mut self)
clap_derive/src/utils/doc_comments.rs:187
↓ 1 callersMethodend_style
(&mut self, style: Style)
clap_derive/src/utils/doc_comments.rs:195
↓ 1 callersFunctionenv_value_command
(name: &'static str)
clap_mangen/tests/testsuite/common.rs:275
↓ 1 callersFunctionescape_help
(help: Option<&StyledStr>, data: T)
clap_complete/src/aot/shells/elvish.rs:64
↓ 1 callersFunctionescape_name
(name: &str)
clap_complete/src/aot/shells/fish.rs:68
↓ 1 callersFunctionescape_string
Escape string inside single quotes
clap_complete/src/aot/shells/powershell.rs:65
↓ 1 callersFunctionescape_string
Escape string inside single quotes
clap_complete/src/aot/shells/elvish.rs:60
↓ 1 callersMethodexit_code
Returns the exit code that `.exit` will exit the process with. When the error's kind would print to `stderr` this returns `2`, else it returns `0`.
clap_builder/src/error/mod.rs:233
↓ 1 callersFunctionexpand_aliases
( matches: ArgMatches, mut expanded: Vec<String>, )
examples/git.rs:73
↓ 1 callersFunctionexpand_aliases
(args: Cli, mut expanded: Vec<String>)
examples/git-derive.rs:114
↓ 1 callersFunctionextract_doc_comment
(attrs: &[syn::Attribute])
clap_derive/src/utils/doc_comments.rs:9
↓ 1 callersMethodfails_arg_required_unless
Failing a required unless means, the arg's "unless" wasn't present, and neither were they
clap_builder/src/parser/validator.rs:361
↓ 1 callersMethodfill_in_global_values
( &mut self, global_arg_vec: &[Id], vals_map: &mut FlatMap<Id, MatchedArg>, )
clap_builder/src/parser/arg_matcher.rs:53
↓ 1 callersMethodfind_default_method
(&self)
clap_derive/src/item.rs:972
↓ 1 callersFunctionfind_duplicates
Find duplicates in a sorted array. The algorithm is simple: the array is sorted, duplicates must be placed next to each other, we can check only adja
clap_builder/src/builder/debug_asserts.rs:474
↓ 1 callersMethodfind_long_subcmd
Find a flag subcommand name by long flag or an alias
clap_builder/src/builder/command.rs:5121
↓ 1 callersMethodfind_short_subcmd
Find a flag subcommand name by short flag or an alias
clap_builder/src/builder/command.rs:5114
↓ 1 callersFunctionfish_quote
Quote `s` for fish's first-pass parser. Used for the `--command` value, where fish reads the token once when sourcing the registration and never re-e
clap_complete/src/env/shells.rs:280
↓ 1 callersFunctionfish_quote_for_eval
Quote `s` for embedding inside fish's `--arguments` value. Fish parses `--arguments` twice: once when sourcing the registration (the outer double-quo
clap_complete/src/env/shells.rs:256
↓ 1 callersFunctionflag
()
clap_bench/benches/simple.rs:26
↓ 1 callersFunctionfoo
(_: T)
clap_builder/src/builder/arg_group.rs:591
↓ 1 callersFunctionformat_doc_comment
( lines: &[String], preprocess: bool, force_long: bool, )
clap_derive/src/utils/doc_comments.rs:53
↓ 1 callersFunctionformat_error
(err: Error)
clap_builder/src/derive.rs:387
↓ 1 callersFunctionformat_possible_values
(possibles: &Vec<&clap::builder::PossibleValue>)
clap_mangen/src/render.rs:490
↓ 1 callersFunctiongather_arg_direct_conflicts
(cmd: &Command, arg: &Arg)
clap_builder/src/parser/validator.rs:504
↓ 1 callersFunctiongather_group_direct_conflicts
(group: &ArgGroup)
clap_builder/src/parser/validator.rs:524
↓ 1 callersMethodgather_requires
(&mut self, matcher: &ArgMatcher)
clap_builder/src/parser/validator.rs:196
↓ 1 callersFunctiongen_augment
( variants: &[(&Variant, Item)], parent_item: &Item, override_required: bool, )
clap_derive/src/derives/subcommand.rs:145
↓ 1 callersFunctiongen_augment
Generate a block of code to add arguments/subcommands corresponding to the `fields` to an cmd.
clap_derive/src/derives/args.rs:176
↓ 1 callersFunctiongen_fish_inner
( root_command: &str, parent_commands: &[&str], cmd: &Command, buffer: &mut String, needs_
clap_complete/src/aot/shells/fish.rs:72
↓ 1 callersFunctiongen_for_enum
( item: &Item, item_name: &Ident, generics: &Generics, variants: &[(&Variant, Item)], )
clap_derive/src/derives/parser.rs:109
↓ 1 callersFunctiongen_for_enum
( item: &Item, item_name: &Ident, generics: &Generics, variants: &[(&Variant, Item)], )
clap_derive/src/derives/subcommand.rs:46
↓ 1 callersFunctiongen_for_enum
( item: &Item, item_name: &Ident, variants: &[(&Variant, Item)], )
clap_derive/src/derives/value_enum.rs:37
↓ 1 callersFunctiongen_for_struct
( item: &Item, item_name: &Ident, generics: &Generics, fields: &[(&Field, Item)], )
clap_derive/src/derives/parser.rs:85
↓ 1 callersFunctiongen_for_struct
( item: &Item, item_name: &Ident, generics: &Generics, fields: &[(&Field, Item)], )
clap_derive/src/derives/args.rs:58
↓ 1 callersFunctiongen_from_arg_matches
(variants: &[(&Variant, Item)])
clap_derive/src/derives/subcommand.rs:441
↓ 1 callersFunctiongen_has_subcommand
(variants: &[(&Variant, Item)])
clap_derive/src/derives/subcommand.rs:377
↓ 1 callersFunctiongen_subcommand_helpers
Print fish's helpers for easy handling subcommands.
clap_complete/src/aot/shells/fish.rs:215
↓ 1 callersFunctiongen_to_possible_value
(item: &Item, lits: &[(TokenStream, Ident)])
clap_derive/src/derives/value_enum.rs:119
↓ 1 callersFunctiongen_update_from_arg_matches
(variants: &[(&Variant, Item)])
clap_derive/src/derives/subcommand.rs:587
↓ 1 callersFunctiongen_value_variants
(lits: &[(TokenStream, Ident)])
clap_derive/src/derives/value_enum.rs:109
↓ 1 callersFunctiongenerate
(cmd: clap::Command, out_dir: &std::path::Path)
clap_mangen/src/lib.rs:132
↓ 1 callersFunctiongenerate_aliases
(completions: &mut String, preamble: &String, arg: &Arg)
clap_complete/src/aot/shells/powershell.rs:132
↓ 1 callersFunctiongenerate_completion
(completions: &mut String, cmd: &Command, is_subcommand: bool)
clap_complete_nushell/src/lib.rs:209
↓ 1 callersFunctiongenerate_inner
(p: &Command, previous_command_name: &str)
clap_complete/src/aot/shells/powershell.rs:79
↓ 1 callersFunctiongenerate_inner
(p: &Command, previous_command_name: &str)
clap_complete/src/aot/shells/elvish.rs:71
↓ 1 callersMethodgenerate_to
[Renders](Man::render) the manual page and writes it to a file
clap_mangen/src/lib.rs:115
↓ 1 callersMethodget
(&self)
clap_builder/src/builder/command.rs:4296
↓ 1 callersMethodget
(&self)
clap_builder/src/builder/ext.rs:12
↓ 1 callersMethodget_arg
(&'s self, arg: &str)
clap_builder/src/parser/matches/arg_matches.rs:1319
↓ 1 callersFunctionget_args_of
Writes out the args section, which ends up being the flags, opts and positionals, and a jump to another ZSH function if there are subcommands. The str
clap_complete/src/aot/shells/zsh.rs:324
↓ 1 callersMethodget_before_help
(&self)
clap_builder/src/builder/command.rs:3962
↓ 1 callersMethodget_default_values
Get the default values specified for this argument, if any # Examples ```rust # use clap_builder as clap; # use clap::Arg; let arg = Arg::new("foo")
clap_builder/src/builder/arg.rs:4414
↓ 1 callersMethodget_direct_conflicts
(&self, arg_id: &Id)
clap_builder/src/parser/validator.rs:486
↓ 1 callersMethodget_env
(&self)
clap_builder/src/builder/arg.rs:4400
↓ 1 callersMethodget_error
(&self)
clap_builder/src/builder/styling.rs:153
↓ 1 callersMethodget_filename
(&self)
clap_mangen/src/lib.rs:104
↓ 1 callersMethodget_global_arg_conflicts_with
Get a unique list of all arguments of all commands and continuous subcommands the given argument conflicts with. This behavior follows the propagatio
clap_builder/src/builder/command.rs:4070
↓ 1 callersMethodget_matches_mut
Parse [`env::args_os`], [exiting][Error::exit] on failure. Like [`Command::get_matches`] but doesn't consume the `Command`. # Panics If contradicto
clap_builder/src/builder/command.rs:687
↓ 1 callersMethodget_max_term_width
(&self)
clap_builder/src/builder/command.rs:4324
↓ 1 callersMethodget_name
(&self)
clap_builder/src/builder/possible_value.rs:165
↓ 1 callersMethodget_name_and_aliases
Returns all valid values of the argument value. Namely the name and all aliases.
clap_builder/src/builder/possible_value.rs:200
↓ 1 callersMethodget_name_str
(&self)
clap_builder/src/builder/command.rs:3762
↓ 1 callersMethodget_occurrences
( &self, id: &str, )
clap_builder/src/parser/matches/arg_matches.rs:263
↓ 1 callersFunctionget_possible_values
(arg: &Arg)
clap_mangen/src/render.rs:475
↓ 1 callersFunctionget_possible_values_cli
(a: &Arg)
clap_builder/src/parser/validator.rs:528
↓ 1 callersMethodget_spaces
(&self, n: usize)
clap_builder/src/output/help_template.rs:857
↓ 1 callersMethodget_subcommand
(&self, name: &str)
clap_builder/src/parser/matches/arg_matches.rs:1337
↓ 1 callersMethodget_subcommands_containing
Get a list of subcommands which contain the provided Argument This command will only include subcommands in its list for which the subcommands parent
clap_builder/src/builder/command.rs:4109
↓ 1 callersMethodget_term_width
(&self)
clap_builder/src/builder/command.rs:4319
↓ 1 callersMethodget_usage_name
(&self)
clap_builder/src/builder/command.rs:3713
↓ 1 callersMethodget_used_global_args
(&self, matches: &ArgMatches, global_arg_vec: &mut Vec<Id>)
clap_builder/src/builder/command.rs:4332
↓ 1 callersFunctionget_user_help_flag
(cmd: &Command)
clap_builder/src/error/format.rs:441
← previousnext →701–800 of 3,258, ranked by callers