Skip to content

Commit

Permalink
Fix breaking the 'clean' subcommand caused replacing a single-letter …
Browse files Browse the repository at this point in the history
…variable with the same value in two contexts where it was used differently. That's why you don't use "m" as a variable for hundreds of lines in an outer function, and re-use it in closures several times in the same function. Sheesh.
  • Loading branch information
CleanCut committed Apr 2, 2017
1 parent 6b72586 commit 1e53898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/flags.rs
Expand Up @@ -244,7 +244,7 @@ Arguments:
Subcommand::Doc { paths: paths }
}
"clean" => {
if matches.free.len() > 0 {
if paths.len() > 0 {
println!("\nclean takes no arguments\n");
usage(1, &opts, &subcommand_help, &extra_help);
}
Expand Down

0 comments on commit 1e53898

Please sign in to comment.