Home
last modified time | relevance | path

Searched refs:InvalidSubcommand (Results 1 – 11 of 11) sorted by relevance

/third_party/rust/crates/clap/src/error/
Dkind.rs57 InvalidSubcommand, enumerator
321 Self::InvalidSubcommand => Some("unrecognized subcommand"), in as_str()
Dcontext.rs7 InvalidSubcommand, enumerator
46 Self::InvalidSubcommand => Some("Invalid Subcommand"), in as_str()
Dmod.rs432 let mut err = Self::new(ErrorKind::InvalidSubcommand).with_cmd(cmd); in invalid_subcommand()
446 (ContextKind::InvalidSubcommand, ContextValue::String(subcmd)), in invalid_subcommand()
470 let mut err = Self::new(ErrorKind::InvalidSubcommand).with_cmd(cmd); in unrecognized_subcommand()
475 ContextKind::InvalidSubcommand, in unrecognized_subcommand()
520 (ContextKind::InvalidSubcommand, ContextValue::String(parent)), in missing_subcommand()
Dformat.rs218 ErrorKind::InvalidSubcommand => { in write_dynamic_context()
219 let invalid_sub = error.get(ContextKind::InvalidSubcommand); in write_dynamic_context()
244 let invalid_sub = error.get(ContextKind::InvalidSubcommand); in write_dynamic_context()
/third_party/rust/crates/clap/examples/derive_ref/
Dhand_subcommand.rs27 ErrorKind::InvalidSubcommand, in from_arg_matches()
42 ErrorKind::InvalidSubcommand, in update_from_arg_matches()
/third_party/rust/crates/clap/tests/builder/
Dsubcommands.rs463 assert_eq!(m.unwrap_err().kind(), ErrorKind::InvalidSubcommand); in busybox_like_multicall()
481 assert_eq!(m.unwrap_err().kind(), ErrorKind::InvalidSubcommand); in hostname_like_multicall()
503 assert_eq!(err.kind(), ErrorKind::InvalidSubcommand); in bad_multicall_command_error()
516 assert_eq!(err.kind(), ErrorKind::InvalidSubcommand); in bad_multicall_command_error()
Dapp_settings.rs178 assert_eq!(m.unwrap_err().kind(), ErrorKind::InvalidSubcommand); in infer_subcommands_fail_no_args()
190 assert_eq!(m.unwrap_err().kind(), ErrorKind::InvalidSubcommand); in infer_subcommands_fail_no_args()
265 assert_eq!(m.unwrap_err().kind(), ErrorKind::InvalidSubcommand); in infer_subcommands_fail_suggestions()
277 assert_eq!(m.unwrap_err().kind(), ErrorKind::InvalidSubcommand); in infer_subcommands_fail_suggestions()
621 assert_eq!(err.kind(), ErrorKind::InvalidSubcommand); in disable_help_subcommand()
Dhelp.rs2508 assert_eq!(err.kind(), ErrorKind::InvalidSubcommand); in disabled_help_flag()
2520 assert_eq!(err.kind(), ErrorKind::InvalidSubcommand); in disabled_help_flag_and_subcommand()
/third_party/rust/crates/clap/tests/derive/
Dsubcommands.rs597 clap::error::ErrorKind::InvalidSubcommand, in skip_subcommand()
603 clap::error::ErrorKind::InvalidSubcommand, in skip_subcommand()
/third_party/rust/crates/clap/clap_derive/src/derives/
Dsubcommand.rs553 …::std::result::Result::Err(clap::Error::raw(clap::error::ErrorKind::InvalidSubcommand, format!("Th… in gen_from_arg_matches()
/third_party/rust/crates/clap/
DCHANGELOG.md509 - `ErrorKind::UnrecognizedSubcommand` replaced with `ErrorKind::InvalidSubcommand` to remove an unn…
591 - *(parser)* Prefer `InvalidSubcommand` over `UnknownArgument` in more cases (#4219)