autobuilder: Default to running "autobuilder"

This commit is contained in:
Colin Walters 2014-02-23 17:05:43 -05:00
parent 49b7810ce1
commit 2e21ceed91

View File

@ -50,12 +50,15 @@ function usage(ecode) {
} }
let ecode; let ecode;
if (ARGV.length < 1) { if (ARGV.length > 0 && (ARGV[0] == '-h' || ARGV[0] == '--help')) {
ecode = usage(1);
} else if (ARGV[0] == '-h' || ARGV[0] == '--help') {
ecode = usage(0); ecode = usage(0);
} else { } else {
let name = ARGV[0]; let name;
if (ARGV.length < 1) {
name = "autobuilder";
} else {
name = ARGV[0];
}
let found = false; let found = false;
for (let i = 0; i < BUILTINS.length; i++) { for (let i = 0; i < BUILTINS.length; i++) {
if (BUILTINS[i] == name) { if (BUILTINS[i] == name) {