@@ -96,25 +96,6 @@ pub fn uu_app() -> Command {
9696 . help ( "like verbose but report only when a change is made" )
9797 . action ( ArgAction :: SetTrue ) ,
9898 )
99- . arg (
100- Arg :: new ( options:: dereference:: DEREFERENCE )
101- . long ( options:: dereference:: DEREFERENCE )
102- . help (
103- "affect the referent of each symbolic link (this is the default), \
104- rather than the symbolic link itself",
105- )
106- . action ( ArgAction :: SetTrue ) ,
107- )
108- . arg (
109- Arg :: new ( options:: dereference:: NO_DEREFERENCE )
110- . short ( 'h' )
111- . long ( options:: dereference:: NO_DEREFERENCE )
112- . help (
113- "affect symbolic links instead of any referenced file \
114- (useful only on systems that can change the ownership of a symlink)",
115- )
116- . action ( ArgAction :: SetTrue ) ,
117- )
11899 . arg (
119100 Arg :: new ( options:: FROM )
120101 . long ( options:: FROM )
@@ -165,34 +146,15 @@ pub fn uu_app() -> Command {
165146 . long ( options:: verbosity:: SILENT )
166147 . action ( ArgAction :: SetTrue ) ,
167148 )
168- . arg (
169- Arg :: new ( options:: traverse:: TRAVERSE )
170- . short ( options:: traverse:: TRAVERSE . chars ( ) . next ( ) . unwrap ( ) )
171- . help ( "if a command line argument is a symbolic link to a directory, traverse it" )
172- . overrides_with_all ( [ options:: traverse:: EVERY , options:: traverse:: NO_TRAVERSE ] )
173- . action ( ArgAction :: SetTrue ) ,
174- )
175- . arg (
176- Arg :: new ( options:: traverse:: EVERY )
177- . short ( options:: traverse:: EVERY . chars ( ) . next ( ) . unwrap ( ) )
178- . help ( "traverse every symbolic link to a directory encountered" )
179- . overrides_with_all ( [ options:: traverse:: TRAVERSE , options:: traverse:: NO_TRAVERSE ] )
180- . action ( ArgAction :: SetTrue ) ,
181- )
182- . arg (
183- Arg :: new ( options:: traverse:: NO_TRAVERSE )
184- . short ( options:: traverse:: NO_TRAVERSE . chars ( ) . next ( ) . unwrap ( ) )
185- . help ( "do not traverse any symbolic links (default)" )
186- . overrides_with_all ( [ options:: traverse:: TRAVERSE , options:: traverse:: EVERY ] )
187- . action ( ArgAction :: SetTrue ) ,
188- )
189149 . arg (
190150 Arg :: new ( options:: verbosity:: VERBOSE )
191151 . long ( options:: verbosity:: VERBOSE )
192152 . short ( 'v' )
193153 . help ( "output a diagnostic for every file processed" )
194154 . action ( ArgAction :: SetTrue ) ,
195155 )
156+ // Add common arguments with chgrp, chown & chmod
157+ . args ( uucore:: perms:: common_args ( ) )
196158}
197159
198160/// Parses the user string to extract the UID.
0 commit comments