Skip to content

Commit

Permalink
Branch arms need to match the return value even if it's not being ass…
Browse files Browse the repository at this point in the history
…igned to anything
  • Loading branch information
CleanCut committed Apr 4, 2017
1 parent 20cb700 commit ea2bfae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bootstrap/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`");

// Some subcommands get extra options
match subcommand.as_str() {
"test" => opts.optmulti("", "test-args", "extra arguments", "ARGS"),
"bench" => opts.optmulti("", "test-args", "extra arguments", "ARGS"),
"dist" => opts.optflag("", "install", "run installer as well"),
_ => { }
"test" => { opts.optmulti("", "test-args", "extra arguments", "ARGS"); },
"bench" => { opts.optmulti("", "test-args", "extra arguments", "ARGS"); },
"dist" => { opts.optflag("", "install", "run installer as well"); },
_ => { },
};

// Done specifying what options are possible, so do the getopts parsing
Expand Down

0 comments on commit ea2bfae

Please sign in to comment.