Skip to content

Commit

Permalink
docs: document hideBin (#1932)
Browse files Browse the repository at this point in the history
Fixes #1871
  • Loading branch information
bcoe committed May 2, 2021
1 parent 4861de7 commit 3a3c98f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -78,6 +78,8 @@ $ ./plunder.js --ships 12 --distance 98.7
Retreat from the xupptumblers!
```

> Note: `hideBin` is a shorthand for [`process.argv.slice(2)`](https://nodejs.org/en/knowledge/command-line/how-to-parse-command-line-arguments/). It has the benefit that it takes into account variations in some environments, e.g., [Electron](https://github.com/electron/electron/issues/4690).
### Complex Example

```javascript
Expand Down

0 comments on commit 3a3c98f

Please sign in to comment.