using unix convention for cmd args

This commit is contained in:
minjaesong
2023-05-10 09:41:43 +09:00
parent beecc0b5eb
commit ba5c87530f
16 changed files with 34 additions and 34 deletions

View File

@@ -8,7 +8,7 @@ if (exec_args[1] === undefined) {
return 1;
}
let noNewFile = (exec_args[1] == "/c" || exec_args[1] == "/C");
let noNewFile = (exec_args[1] == "-c" || exec_args[1] == "-C");
let file = files.open(`${_G.shell.resolvePathInput(exec_args[2] || exec_args[1]).full}`)
if (!file.exists && noNewFile) {
printerrln("TOUCH: Can't open "+file.fullPath+" due to IO error");