Home
last modified time | relevance | path

Searched refs:EarlyExit (Results 1 – 10 of 10) sorted by relevance

/external/rust/crates/argh/src/
Dlib.rs448 fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>; in from_args() argument
581 fn redact_arg_values(_command_name: &[&str], _args: &[&str]) -> Result<Vec<String>, EarlyExit> { in redact_arg_values() argument
626 ) -> Option<Result<Vec<String>, EarlyExit>>; in try_redact_arg_values() argument
635 fn try_from_args(command_name: &[&str], args: &[&str]) -> Option<Result<Self, EarlyExit>>; in try_from_args() argument
642 pub struct EarlyExit { struct
655 impl From<String> for EarlyExit { argument
880 ) -> Result<(), EarlyExit> { in parse_struct_args() argument
919 Err(EarlyExit { output: help_func(), status: Ok(()) }) in parse_struct_args()
996 fn parse(&mut self, index: &mut usize, arg: &str) -> Result<bool, EarlyExit> { in parse() argument
1012 Err(EarlyExit { output: unrecognized_arg(arg), status: Err(()) }) in parse()
[all …]
/external/python/cpython2/Demo/threads/
Dfcmp.py20 except EarlyExit:
36 except EarlyExit:
39 except EarlyExit:
45 except EarlyExit:
DCoroutine.py97 class EarlyExit(Exception): pass class
155 raise EarlyExit, '%r terminated early' % (self.terminated_by,)
/external/crosvm/argh_helpers/src/
Dlib.rs50 -> std::result::Result<Self, argh::EarlyExit> in flatten_subcommand()
55 return Err(argh::EarlyExit::from("no subcommand name".to_owned())); in flatten_subcommand()
69 Err(argh::EarlyExit::from("no subcommand matched".to_owned())) in flatten_subcommand()
72 …values(command_name: &[&str], args: &[&str]) -> std::result::Result<Vec<String>, argh::EarlyExit> { in flatten_subcommand()
76 return Err(argh::EarlyExit::from("no subcommand name".to_owned())); in flatten_subcommand()
93 Err(argh::EarlyExit::from("no subcommand matched".to_owned())) in flatten_subcommand()
/external/rust/crates/argh/tests/
Dlib.rs144 ) -> Option<Result<Vec<String>, argh::EarlyExit>> { in dynamic_subcommand_example() argument
145 Some(Err(argh::EarlyExit::from("Test should not redact".to_owned()))) in dynamic_subcommand_example()
151 ) -> Option<Result<DynamicSubCommandImpl, argh::EarlyExit>> { in dynamic_subcommand_example() argument
154 None => return Some(Err(argh::EarlyExit::from("No command".to_owned()))), in dynamic_subcommand_example()
158 Some(Err(argh::EarlyExit::from("Too many arguments".to_owned()))) in dynamic_subcommand_example()
162 Some(Err(argh::EarlyExit::from("Not enough arguments".to_owned()))) in dynamic_subcommand_example()
1080 ) -> Option<Result<Vec<String>, argh::EarlyExit>> { in try_redact_arg_values() argument
1081 Some(Err(argh::EarlyExit::from("Test should not redact".to_owned()))) in try_redact_arg_values()
1087 ) -> Option<Result<HelpExamplePlugin, argh::EarlyExit>> { in try_from_args() argument
1091 Some(Err(argh::EarlyExit::from("Too many arguments".to_owned()))) in try_from_args()
[all …]
/external/crosvm/src/crosvm/sys/windows/
Dcmdline.rs6 use argh::EarlyExit;
52 fn from_args(cmd_name: &[&str], args: &[&str]) -> std::result::Result<Self, EarlyExit> { in from_args() argument
60 ) -> std::result::Result<Vec<String>, EarlyExit> { in redact_arg_values() argument
/external/antlr/runtime/Ruby/lib/antlr3/
Derror.rb446 class EarlyExit < RecognitionError class
628 def EarlyExit( decision, input = @input ) method
629 EarlyExit.new( decision, input )
/external/rust/crates/argh_derive/src/
Dlib.rs363 -> std::result::Result<Self, argh::EarlyExit> in impl_from_args_struct_from_args()
482 …values(__cmd_name: &[&str], __args: &[&str]) -> std::result::Result<Vec<String>, argh::EarlyExit> { in impl_from_args_struct_redact_arg_values()
518 return Err(argh::EarlyExit::from(#unwrap_cmd_name_err_string.to_owned())); in impl_from_args_struct_redact_arg_values()
1002 -> std::result::Result<Self, argh::EarlyExit> in impl_from_args_enum()
1007 return Err(argh::EarlyExit::from("no subcommand name".to_owned())); in impl_from_args_enum()
1020 Err(argh::EarlyExit::from("no subcommand matched".to_owned())) in impl_from_args_enum()
1023 …values(command_name: &[&str], args: &[&str]) -> std::result::Result<Vec<String>, argh::EarlyExit> { in impl_from_args_enum()
1027 return Err(argh::EarlyExit::from("no subcommand name".to_owned())); in impl_from_args_enum()
1038 Err(argh::EarlyExit::from("no subcommand matched".to_owned())) in impl_from_args_enum()
/external/antlr/runtime/Ruby/lib/antlr3/template/
Dgroup-file-lexer.rb808 eee = EarlyExit( 11 )
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Ruby/
DRuby.stg403 eee = EarlyExit(<decisionNumber>)