diff options
| author | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2017-08-29 21:41:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-29 21:41:00 +0000 |
| commit | d59aa7d846588253fb959c86491e2c2989d92354 (patch) | |
| tree | fb24d9a3682790d7fc3ad57c94900943219b4ac0 | |
| parent | 29f360b179a192b2d96b9ace5f57903d4d0a5242 (diff) | |
| parent | 6fc35de5e88bb4035fa2a2be28b09d01fc8ebd53 (diff) | |
| download | rust-d59aa7d846588253fb959c86491e2c2989d92354.tar.gz rust-d59aa7d846588253fb959c86491e2c2989d92354.zip | |
Rollup merge of #44134 - vorner:x-py-unknown-cmd, r=nikomatsakis
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 ```
| -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); } }; |
