Skip to content
Myr

Improve example (#1544)

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

authored by John Gee · committed by GitHub · parent 7503a69 · Browse files · 1 file+2 added−2 removed
This commit

State

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

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/options-taking-varying-arguments.md+2 added-2 removed
64 unmodified lines
6566The explicit way to resolve this is use `--` to indicate the end of the options and option-arguments:6768```sh69$ node cook.js -i -- egg70technique: egg69$ node cook.js -i -- scrambled70technique: scrambled71ingredient: cheese72```7374If you want to avoid your users needing to learn when to use `--`, there are a few approaches you could take.
127 unmodified lines