mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
CLI: Add --temporary flag to run command (#2354)
This commit is contained in:
@@ -35,7 +35,8 @@ export const TerminalHelpText: string[] = [
|
||||
" ps Display all scripts that are currently running",
|
||||
" rm [OPTIONS]... [FILE]... Delete a file from the server",
|
||||
" run [script] [-t n] [--tail] Execute a program or script",
|
||||
" [--ram-override n] [args...]",
|
||||
" [--ram-override n]",
|
||||
" [--temporary] [args...]",
|
||||
" scan Prints all immediately-available network connections",
|
||||
" scan-analyze [d] [-a] Prints info for all servers up to d nodes away",
|
||||
" scp [files...] [server] Copies a file to a destination server",
|
||||
@@ -417,17 +418,23 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
"Note that if you use rm to remove a file, the contents of the file will be lost. This is irreversible.",
|
||||
],
|
||||
run: [
|
||||
"Usage: run [file name] [-t num_threads] [--tail] [--ram-override ram_in_GBs] [args...]",
|
||||
"Usage: run [file name] [-t num_threads] [--tail] [--ram-override ram_in_GBs] [--temporary] [args...]",
|
||||
" ",
|
||||
"Execute a program, script or coding contract.",
|
||||
" ",
|
||||
"The '[-t num_threads]', '[--tail]', `[--ram-override ram_in_GBs]`, and '[args...]' arguments are only valid",
|
||||
"when running a script. The '-t' flag is used to indicate that the script should be run with the specified",
|
||||
"The '[-t num_threads]', '[--tail]', `[--ram-override ram_in_GBs]`, [--temporary], and '[args...]' arguments are",
|
||||
"only valid when running a script. The '-t' flag is used to indicate that the script should be run with the specified",
|
||||
"number of threads. If the flag is omitted, then the script will be run with a single thread by default. The",
|
||||
"'--tail' flag is used to immediately open a tail window for the script being ran. And the '--ram-override'",
|
||||
"flag is used to override the amount of ram (per thread) the script is ran with. If the script ends up using",
|
||||
"more than that amount of ram it will crash. If any of the flags are used, then they MUST come immediately",
|
||||
"after the script name.",
|
||||
"'--tail' flag is used to immediately open a tail window for the script being ran. The '--ram-override' flag is used",
|
||||
"to override the amount of ram (per thread) the script is ran with. If the script ends up using more than that",
|
||||
"amount of ram it will crash. The '--temporary' flag is used to indicate that the script should be excluded from the",
|
||||
"save data. You must specify [file name] after 'run' and before any flags. You can use the built-in flags or mix them",
|
||||
"with your custom flags in any orders.",
|
||||
" ",
|
||||
"Note: 'ns.args' only contains custom flags, not built-in flags. You can use '--' to end special args processing, if",
|
||||
"you want to explicitly pass these built-in flags to your script. For example:",
|
||||
"- 'run a.js -t 5': Run a.js with 5 threads. 'ns.args' is an empty array.",
|
||||
"- 'run a.js -- -t 10': Run a.js with 1 thread. 'ns.args' is an array: ['-t', 10].",
|
||||
" ",
|
||||
"[args...] represents a variable number of arguments that will be passed into the script. See the documentation ",
|
||||
"about script arguments. Each specified argument must be separated by a space. ",
|
||||
|
||||
Reference in New Issue
Block a user