diff --git a/src/Terminal/commands/alias.ts b/src/Terminal/commands/alias.ts index d5c7f8d37..02d804474 100644 --- a/src/Terminal/commands/alias.ts +++ b/src/Terminal/commands/alias.ts @@ -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"]'); } diff --git a/src/Terminal/commands/run.ts b/src/Terminal/commands/run.ts index c602d56bf..9dd4f6845 100644 --- a/src/Terminal/commands/run.ts +++ b/src/Terminal/commands/run.ts @@ -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]..."); 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)) { return runScript(path, args, server); } else if (hasContractExtension(path)) {