diff options
| author | Michal 'vorner' Vaner <vorner@vorner.cz> | 2017-08-27 19:20:03 +0200 |
|---|---|---|
| committer | Michal 'vorner' Vaner <vorner@vorner.cz> | 2017-08-27 19:20:03 +0200 |
| commit | 6fc35de5e88bb4035fa2a2be28b09d01fc8ebd53 (patch) | |
| tree | b7ee35878fbb9cb7f6dc559a9bccdc39aa00e199 /src/bootstrap/flags.rs | |
| parent | eb8f2586ebd842dec49d3d7f50e49a985ab31493 (diff) | |
| download | rust-6fc35de5e88bb4035fa2a2be28b09d01fc8ebd53.tar.gz rust-6fc35de5e88bb4035fa2a2be28b09d01fc8ebd53.zip | |
Fail ./x.py on invalid command
Make the ./x.py script fail when run with an invalid command, like: ./x.py nonsense This helps in case of chaining multiple runs, eg.: ./x.py biuld && ./x.py test
Diffstat (limited to 'src/bootstrap/flags.rs')
| -rw-r--r-- | src/bootstrap/flags.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index a84d43d3dee..7546d7fd4f0 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -136,7 +136,7 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`"); None => { // No subcommand -- show the general usage and subcommand help println!("{}\n", subcommand_help); - process::exit(0); + process::exit(1); } }; |
