From ab207ce36ca5462f4f9bc4c20447ada1364c83f2 Mon Sep 17 00:00:00 2001 From: omuretsu <84951833+Snarling@users.noreply.github.com> Date: Fri, 26 May 2023 15:45:49 -0400 Subject: [PATCH] Fix more terminal usage error text --- src/Terminal/commands/alias.ts | 2 +- src/Terminal/commands/run.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) {