]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #45535 - topecongiro:bootstrap-exit-code, r=kennytm
authorkennytm <kennytm@gmail.com>
Sat, 28 Oct 2017 07:56:22 +0000 (15:56 +0800)
committerGitHub <noreply@github.com>
Sat, 28 Oct 2017 07:56:22 +0000 (15:56 +0800)
Return 0 as an exit status when no subcommand is given to bootstrap

Running `./x.py` emits usage and error messages when no subcommand is given:
```
Usage: x.py <subcommand> [options] [<paths>...]

Subcommands:
    build       Compile either the compiler or libraries
    test        Build and run some test suites
    bench       Build and run some benchmarks
    doc         Build documentation
    clean       Clean out build directories
    dist        Build distribution artifacts
    install     Install distribution artifacts

To learn more about a subcommand, run `./x.py <subcommand> -h`

failed to run: /home/topecongiro/rust/build/bootstrap/debug/bootstrap
```
IMHO the last line is unnecessary. This PR removes it by changing the return code of `bootstrap` to 0 when no sub command is given.


Trivial merge