File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -253,17 +253,18 @@ Arguments:
253
253
}
254
254
} ) ;
255
255
256
- // All subcommands can have an optional "Available paths" section
256
+ // All subcommands except `clean` can have an optional "Available paths" section
257
257
if matches. opt_present ( "verbose" ) {
258
258
let config = Config :: parse ( & [ "build" . to_string ( ) ] ) ;
259
259
let mut build = Build :: new ( config) ;
260
260
metadata:: build ( & mut build) ;
261
261
262
262
let maybe_rules_help = Builder :: get_help ( & build, subcommand. as_str ( ) ) ;
263
263
extra_help. push_str ( maybe_rules_help. unwrap_or_default ( ) . as_str ( ) ) ;
264
- } else {
265
- extra_help. push_str ( format ! ( "Run `./x.py {} -h -v` to see a list of available paths." ,
266
- subcommand) . as_str ( ) ) ;
264
+ } else if subcommand. as_str ( ) != "clean" {
265
+ extra_help. push_str ( format ! (
266
+ "Run `./x.py {} -h -v` to see a list of available paths." ,
267
+ subcommand) . as_str ( ) ) ;
267
268
}
268
269
269
270
// User passed in -h/--help?
@@ -293,7 +294,7 @@ Arguments:
293
294
}
294
295
"clean" => {
295
296
if paths. len ( ) > 0 {
296
- println ! ( "\n clean takes no arguments \n " ) ;
297
+ println ! ( "\n clean does not take a path argument \n " ) ;
297
298
usage ( 1 , & opts, & subcommand_help, & extra_help) ;
298
299
}
299
300
You can’t perform that action at this time.
0 commit comments