Skip to content

Commit

Permalink
docs: fix example halt-at-non-option (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba authored and bcoe committed May 5, 2019
1 parent a3936aa commit b1012f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,20 +324,20 @@ node example.js -a 1 -c 2
* default: `false`.
* key: `halt-at-non-option`.
Should parsing stop at the first text argument? This is similar to how e.g. `ssh` parses its command line.
Should parsing stop at the first positional argument? This is similar to how e.g. `ssh` parses its command line.
_If disabled:_
```sh
node example.js -a run b -x y
{ _: [ 'run', 'b', 'y' ], a: true, x: true }
{ _: [ 'b' ], a: 'run', x: 'y' }
```
_If enabled:_
```sh
node example.js -a run b -x y
{ _: [ 'run', 'b', '-x', 'y' ], a: true }
{ _: [ 'b', '-x', 'y' ], a: 'run' }
```
### strip aliased
Expand Down

0 comments on commit b1012f8

Please sign in to comment.