Merge pull request #3025 from janwiemers/master

add a --app parameter to the default_app
This commit is contained in:
Cheng Zhao 2015-10-08 16:26:05 +08:00
commit 59b43a6571

View file

@ -18,6 +18,9 @@ for (var i = 0; i < argv.length; i++) {
if (argv[i] == '--version' || argv[i] == '-v') {
option.version = true;
break;
} else if (argv[i].match(/^--app=/)) {
option.file = argv[i].split('=')[1];
break;
} else if (argv[i] == '--help' || argv[i] == '-h') {
option.help = true;
break;