From d282f20e5519f37abb950d80f429e07412d148cb Mon Sep 17 00:00:00 2001 From: John Gee Date: Wed, 26 May 2021 20:42:52 +1200 Subject: [PATCH] Remove incorrect example output (#1532) --- Readme.md | 5 +---- examples/options-common.js | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) 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