File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,14 @@ impl<'cmd> Parser<'cmd> {
5454 ) -> ClapResult < ( ) > {
5555 debug ! ( "Parser::get_matches_with" ) ;
5656
57- ok ! ( self . parse( matcher, raw_args, args_cursor) ) ;
57+ let res = self . parse ( matcher, raw_args, args_cursor) ;
5858
5959 ok ! ( self . resolve_pending( matcher) ) ;
6060 #[ cfg( feature = "env" ) ]
6161 ok ! ( self . add_env( matcher) ) ;
6262 ok ! ( self . add_defaults( matcher) ) ;
6363
64+ res?;
6465 Validator :: new ( self . cmd ) . validate ( matcher)
6566 }
6667
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ fn unexpected_argument() {
113113 m. get_one:: <String >( "config" ) . cloned( ) ,
114114 Some ( "config file" . to_owned( ) )
115115 ) ;
116- assert_eq ! ( m. get_one:: <bool >( "unset-flag" ) . copied( ) , None ) ;
116+ assert_eq ! ( m. get_one:: <bool >( "unset-flag" ) . copied( ) , Some ( false ) ) ;
117117}
118118
119119#[ test]
You can’t perform that action at this time.
0 commit comments