mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
Fix more terminal usage error text
This commit is contained in:
parent
40babcb2ee
commit
ab207ce36c
@ -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]...");
|
||||
|
||||
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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user