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