Skip to content
Myr

Update quotes in examples to match new behaviour

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by John Gee · parent e717283 · Browse files · 4 files+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+6 added−6 removed

  • other:+6 added−6 removed

4 files+6 added−6 removed

modified:examples/options-common.js+1 added-1 removed
modified:examples/options-negatable.js+1 added-1 removed
modified:Readme_zh-CN.md+2 added-2 removed
59 unmodified lines
60$ pizza-options -d61{ debug: true, small: undefined, pizzaType: undefined }62pizza details:63$ pizza-options -p64error: option `-p, --pizza-type <type>' argument missing64error: option '-p, --pizza-type <type>' argument missing65$ pizza-options -ds -p vegetarian66{ debug: true, small: true, pizzaType: 'vegetarian' }67pizza details:68- small pizza size
45 unmodified lines
114```115$ pizza-options116you ordered a pizza with sauce117$ pizza-options --sauce118error: unknown option `--sauce'118error: unknown '--sauce'119$ pizza-options --no-sauce120you ordered a pizza without sauce121```122
395 unmodified lines
modified:Readme.md+2 added-2 removed
60 unmodified lines
61$ pizza-options -d62{ debug: true, small: undefined, pizzaType: undefined }63pizza details:64$ pizza-options -p65error: option `-p, --pizza-type <type>' argument missing65error: option '-p, --pizza-type <type>' argument missing66$ pizza-options -ds -p vegetarian67{ debug: true, small: true, pizzaType: 'vegetarian' }68pizza details:69- small pizza size
46 unmodified lines
116```bash117$ pizza-options118you ordered a pizza with sauce119$ pizza-options --sauce120error: unknown option `--sauce'120error: unknown option '--sauce'121$ pizza-options --no-sauce122you ordered a pizza without sauce123```124You can specify an option which functions as a flag but may also take a value (declared using square brackets).
399 unmodified lines