diff --git a/Readme.md b/Readme.md index 1b43a9613..50250fed7 100644 --- a/Readme.md +++ b/Readme.md @@ -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 ' argument missing -$ pizza-options -ds -p vegetarian +$ pizza-options -d -s -p vegetarian { debug: true, small: true, pizzaType: 'vegetarian' } pizza details: - small pizza size diff --git a/examples/options-common.js b/examples/options-common.js index 05b238912..58202d55c 100755 --- a/examples/options-common.js +++ b/examples/options-common.js @@ -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