Update scripts/vanguard.js, README.md
This commit is contained in:
parent
c9a5f3d9bc
commit
851ef2b01b
@ -180,13 +180,13 @@ Options:
|
|||||||
### [vanguard.js](./scripts/vanguard.js)
|
### [vanguard.js](./scripts/vanguard.js)
|
||||||
**RAM:** 1.90 GB
|
**RAM:** 1.90 GB
|
||||||
|
|
||||||
Weaken the device indefinitely.
|
Weaken a device indefinitely.
|
||||||
```
|
```
|
||||||
[home ~/scripts]> run /scripts/vanguard.js --help
|
[home ~/scripts]> run /scripts/vanguard.js --help
|
||||||
Running script with 1 thread(s), pid 1 and args: ["--help"].
|
Running script with 1 thread(s), pid 1 and args: ["--help"].
|
||||||
/scripts/vanguard.js:
|
/scripts/vanguard.js:
|
||||||
|
|
||||||
Weaken the device indefinitely.
|
Weaken a device indefinitely.
|
||||||
|
|
||||||
Usage: run vanguard.js [OPTIONS] [DEVICE]
|
Usage: run vanguard.js [OPTIONS] [DEVICE]
|
||||||
run vanguard.js --help
|
run vanguard.js --help
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import {ArgError, ArgParser} from './scripts/lib/arg-parser';
|
import {ArgError, ArgParser} from './scripts/lib/arg-parser';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Weaken the device indefinitely.
|
* Weaken a device indefinitely.
|
||||||
* @params ns {NS} - BitBurner API
|
* @params ns {NS} - BitBurner API
|
||||||
*/
|
*/
|
||||||
export async function main(ns) {
|
export async function main(ns) {
|
||||||
@ -10,7 +10,7 @@ export async function main(ns) {
|
|||||||
let args, counter = 0, orgSecurity, security;
|
let args, counter = 0, orgSecurity, security;
|
||||||
const historyLength = 17;
|
const historyLength = 17;
|
||||||
const messageHistory = Array(historyLength).fill('');
|
const messageHistory = Array(historyLength).fill('');
|
||||||
const argParser = new ArgParser('vanguard.js', 'Weaken the device indefinitely.', null, [
|
const argParser = new ArgParser('vanguard.js', 'Weaken a device indefinitely.', null, [
|
||||||
{name: 'device', desc: 'Device to weaken, defaults to the current machine', optional: true, default: ns.getHostname(), type: 'string'},
|
{name: 'device', desc: 'Device to weaken, defaults to the current machine', optional: true, default: ns.getHostname(), type: 'string'},
|
||||||
{name: 'limit', desc: 'Limit the number of times to run', flags: ['-l', '--limit'], default: Infinity, type: 'num'}
|
{name: 'limit', desc: 'Limit the number of times to run', flags: ['-l', '--limit'], default: Infinity, type: 'num'}
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user