format
This commit is contained in:
parent
ece62938a9
commit
a523a42e6e
10 changed files with 78 additions and 52 deletions
|
|
@ -1,18 +1,18 @@
|
|||
if(ARGV.length == 1){
|
||||
if(ARGV.length == 1) {
|
||||
console.log("Type '" + ARGV[0] + " --help' for help");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
for(var i = 1; i < ARGV.length; i++){
|
||||
if(ARGV[i] == "--help"){
|
||||
for(var i = 1; i < ARGV.length; i++) {
|
||||
if(ARGV[i] == "--help") {
|
||||
console.log("PMake " + pmake.VERSION + " - Pyrite's build script generator");
|
||||
console.log("");
|
||||
console.log("Usage: " + ARGV[0] + " [options] action [arguments]");
|
||||
process.exit(0);
|
||||
}else if(ARGV[i].startsWith("--")){
|
||||
} else if(ARGV[i].startsWith("--")) {
|
||||
console.log("Error: invalid option '" + ARGV[i].substr(2) + "'");
|
||||
process.exit(1);
|
||||
}else{
|
||||
} else {
|
||||
console.log("Error: no such action '" + ARGV[i] + "'");
|
||||
process.exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue