Fix more terminal usage error text

This commit is contained in:
omuretsu 2023-05-26 15:45:49 -04:00
parent 40babcb2ee
commit ab207ce36c
2 changed files with 2 additions and 2 deletions

@ -20,5 +20,5 @@ export function alias(args: (string | number | boolean)[]): void {
} }
} }
} }
Terminal.error('Incorrect usage of alias command. Usage: alias [-g] [aliasname="value"]'); Terminal.error('Incorrect usage of alias command. Usage: alias [-g] ["aliasname=value"]');
} }

@ -12,7 +12,7 @@ export function run(args: (string | number | boolean)[], server: BaseServer): vo
if (!arg) return Terminal.error("Usage: run [program/script] [-t] [num threads] [arg1] [arg2]..."); if (!arg) return Terminal.error("Usage: run [program/script] [-t] [num threads] [arg1] [arg2]...");
const path = Terminal.getFilepath(String(arg)); const path = Terminal.getFilepath(String(arg));
if (!path) return Terminal.error(`${args[0]} is not a valid filepath.`); if (!path) return Terminal.error(`${arg} is not a valid filepath.`);
if (hasScriptExtension(path)) { if (hasScriptExtension(path)) {
return runScript(path, args, server); return runScript(path, args, server);
} else if (hasContractExtension(path)) { } else if (hasContractExtension(path)) {