Skip to content
Branch: master
Find file History
shadowspawn Opt-in behaviour to avoid name pollution (#1102)
* Add object to hold option values separately from properties on command. Return directly from .opts().

* Add configureCommand, and support for passing options rather than command to action handler

* Restore original opts() implementation when using old configuration

* Use either/or new/old option storage, not both

* Turn version test on again, old behaviour restored

* Add tests for configureCommand, and fix bugs

* Expand .opts tests to include modern configuration

* Add TypeScript and inline documentation for configureCommand

* Switch from modern:boolean to combo:string

* Rework new behaviour with matching named routines.

* Add example files for storeOptionsAsProperties

* Add usage error, and make value default to true for new routines (so simpler call for that case)

* Simpify description

* Add section on avoiding option name clashes

* Do not use else after a return
Latest commit 81c6e28 Dec 11, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
custom-help Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
custom-help-description Add a way to override help and version help message #963 Jun 26, 2019
custom-version Add a way to override help and version help message #963 Jun 26, 2019
defaults Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
deploy Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
description Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
env Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
express Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
help Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
options-common.js Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
options-custom-processing.js Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
options-defaults.js Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
options-flag-or-value.js Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
options-negatable.js Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
options-required.js Add .requiredOption() for mandatory options (#1071) Oct 8, 2019
pizza fixes behavior of --no-* options Jun 24, 2019
pm Fix help section order and padding (#652) Jul 3, 2017
pm-install Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
pm-publish.js Examples: use "require" that works from git repo, and lint. (#1072) Oct 7, 2019
storeOptionsAsProperties-action.js Opt-in behaviour to avoid name pollution (#1102) Dec 11, 2019
storeOptionsAsProperties-opts.js Opt-in behaviour to avoid name pollution (#1102) Dec 11, 2019
storeOptionsAsProperties-problem.js Opt-in behaviour to avoid name pollution (#1102) Dec 11, 2019
You can’t perform that action at this time.