File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ pub fn uu_app() -> Command {
114114 . short ( 'p' )
115115 . long ( options:: PARENTS )
116116 . help ( "make parent directories as needed" )
117+ . overrides_with ( options:: PARENTS )
117118 . action ( ArgAction :: SetTrue ) ,
118119 )
119120 . arg (
Original file line number Diff line number Diff line change @@ -61,9 +61,21 @@ fn test_mkdir_parent() {
6161 let test_dir = "parent_dir/child_dir" ;
6262
6363 scene. ucmd ( ) . arg ( "-p" ) . arg ( test_dir) . succeeds ( ) ;
64- scene. ucmd ( ) . arg ( "-p" ) . arg ( test_dir) . succeeds ( ) ;
64+ scene. ucmd ( ) . arg ( "-p" ) . arg ( "-p" ) . arg ( test_dir) . succeeds ( ) ;
6565 scene. ucmd ( ) . arg ( "--parent" ) . arg ( test_dir) . succeeds ( ) ;
66+ scene
67+ . ucmd ( )
68+ . arg ( "--parent" )
69+ . arg ( "--parent" )
70+ . arg ( test_dir)
71+ . succeeds ( ) ;
6672 scene. ucmd ( ) . arg ( "--parents" ) . arg ( test_dir) . succeeds ( ) ;
73+ scene
74+ . ucmd ( )
75+ . arg ( "--parents" )
76+ . arg ( "--parents" )
77+ . arg ( test_dir)
78+ . succeeds ( ) ;
6779}
6880
6981#[ test]
You can’t perform that action at this time.
0 commit comments