Skip to content

Commit

Permalink
Remove incorrect example output (#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed May 26, 2021
1 parent 08245cc commit d282f20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Readme.md
Expand Up @@ -131,12 +131,9 @@ if (options.pizzaType) console.log(`- ${options.pizzaType}`);
```

```bash
$ pizza-options -d
{ debug: true, small: undefined, pizzaType: undefined }
pizza details:
$ pizza-options -p
error: option '-p, --pizza-type <type>' argument missing
$ pizza-options -ds -p vegetarian
$ pizza-options -d -s -p vegetarian
{ debug: true, small: true, pizzaType: 'vegetarian' }
pizza details:
- small pizza size
Expand Down
3 changes: 1 addition & 2 deletions examples/options-common.js
Expand Up @@ -21,7 +21,6 @@ if (options.small) console.log('- small pizza size');
if (options.pizzaType) console.log(`- ${options.pizzaType}`);

// Try the following:
// node options-common.js -d
// node options-common.js -p
// node options-common.js -ds -p vegetarian
// node options-common.js -d -s -p vegetarian
// node options-common.js --pizza-type=cheese

0 comments on commit d282f20

Please sign in to comment.