Skip to content

Commit d59aa7d

Browse files
author
Ariel Ben-Yehuda
authored
Rollup merge of rust-lang#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 ```
2 parents 29f360b + 6fc35de commit d59aa7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/flags.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`");
136136
None => {
137137
// No subcommand -- show the general usage and subcommand help
138138
println!("{}\n", subcommand_help);
139-
process::exit(0);
139+
process::exit(1);
140140
}
141141
};
142142

0 commit comments

Comments
 (0)