File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -343,16 +343,16 @@ impl<'cmd> Validator<'cmd> {
343343
344344 fn is_missing_required_ok ( & self , a : & Arg , conflicts : & Conflicts ) -> bool {
345345 debug ! ( "Validator::is_missing_required_ok: {}" , a. get_id( ) ) ;
346-
346+
347347 // If this argument is conditionally required (i.e., required by other present arguments
348- // through the 'requires' relationship), it's NOT OK for it to be missing, even if it
349- // conflicts with other arguments. However, directly required arguments (marked as
348+ // through the 'requires' relationship), it's NOT OK for it to be missing, even if it
349+ // conflicts with other arguments. However, directly required arguments (marked as
350350 // required(true)) can still be bypassed by conflicts.
351351 if self . required . contains ( a. get_id ( ) ) && !a. is_required_set ( ) {
352352 debug ! ( "Validator::is_missing_required_ok: false (conditionally required)" ) ;
353353 return false ;
354354 }
355-
355+
356356 if !conflicts. gather_conflicts ( self . cmd , a. get_id ( ) ) . is_empty ( ) {
357357 debug ! ( "Validator::is_missing_required_ok: true (self)" ) ;
358358 return true ;
You can’t perform that action at this time.
0 commit comments