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

Method enablePositionalOptions

lib/command.js:852–855  ·  view source on GitHub ↗

* Enable positional options. Positional means global options are specified before subcommands which lets * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions. * The default behaviour is non-positional and global options may appear anywhere on th

(positional = true)

Source from the content-addressed store, hash-verified

850 * @return {Command} `this` command for chaining
851 */
852 enablePositionalOptions(positional = true) {
853 this._enablePositionalOptions = !!positional;
854 return this;
855 }
856
857 /**
858 * Pass through options that come after command-arguments rather than treat them as command-options,

Calls

no outgoing calls

Tested by 1

makeProgramFunction · 0.76