File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff 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
138135error: 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' }
141138pizza details:
142139- small pizza size
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ if (options.small) console.log('- small pizza size');
2121if ( 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
You can’t perform that action at this time.
0 commit comments