stuff
This commit is contained in:
parent
fcc88de8d3
commit
ece62938a9
7 changed files with 36 additions and 7 deletions
|
|
@ -9,5 +9,11 @@ for(var i = 1; i < ARGV.length; i++){
|
|||
console.log("");
|
||||
console.log("Usage: " + ARGV[0] + " [options] action [arguments]");
|
||||
process.exit(0);
|
||||
}else if(ARGV[i].startsWith("--")){
|
||||
console.log("Error: invalid option '" + ARGV[i].substr(2) + "'");
|
||||
process.exit(1);
|
||||
}else{
|
||||
console.log("Error: no such action '" + ARGV[i] + "'");
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue