This commit is contained in:
Nishi 2026-05-08 05:25:34 +09:00
commit ece62938a9
Signed by: nishi
GPG key ID: 27EF69B208EB9343
7 changed files with 36 additions and 7 deletions

View file

@ -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);
}
}