Skip to content

Commit 6fc35de

Browse files
committed
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
1 parent eb8f258 commit 6fc35de

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)