Skip to content

Commit d282f20

Browse files
authored
Remove incorrect example output (#1532)
1 parent 08245cc commit d282f20

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Readme.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,9 @@ if (options.pizzaType) console.log(`- ${options.pizzaType}`);
131131
```
132132

133133
```bash
134-
$ pizza-options -d
135-
{ debug: true, small: undefined, pizzaType: undefined }
136-
pizza details:
137134
$ pizza-options -p
138135
error: option '-p, --pizza-type <type>' argument missing
139-
$ pizza-options -ds -p vegetarian
136+
$ pizza-options -d -s -p vegetarian
140137
{ debug: true, small: true, pizzaType: 'vegetarian' }
141138
pizza details:
142139
- small pizza size

examples/options-common.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ if (options.small) console.log('- small pizza size');
2121
if (options.pizzaType) console.log(`- ${options.pizzaType}`);
2222

2323
// Try the following:
24-
// node options-common.js -d
2524
// node options-common.js -p
26-
// node options-common.js -ds -p vegetarian
25+
// node options-common.js -d -s -p vegetarian
2726
// node options-common.js --pizza-type=cheese

0 commit comments

Comments
 (0)