MCPcopy
hub / github.com/tj/commander.js / env

Method env

lib/option.js:120–123  ·  view source on GitHub ↗

* Set environment variable to check for option value. * * An environment variable is only used if when processed the current option value is * undefined, or the source of the current value is 'default' or 'config' or 'env'. * * @param {string} name * @return {Option}

(name)

Source from the content-addressed store, hash-verified

118 */
119
120 env(name) {
121 this.envVar = name;
122 return this;
123 }
124
125 /**
126 * Set the custom handler for processing CLI option arguments into option values.

Callers 13

makeProgramFunction · 0.80
options-extra.jsFile · 0.80
options-env.jsFile · 0.80
hook.jsFile · 0.80

Calls

no outgoing calls

Tested by 1

makeProgramFunction · 0.64