Skip to content
Myr

Add copyInheritedSettings to README (#1798)

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

* Add copyInheritedSettings to README * Add line break.

authored by John Gee · committed by GitHub · parent 8236966 · Browse files · 1 file+2 added−0 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−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:Readme.md+2 added
541 unmodified lines
542Configuration options can be passed with the call to `.command()` and `.addCommand()`. Specifying `hidden: true` will543remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other544subcommand is specified ([example](./examples/defaultCommand.js)).545546For safety, `.addCommand()` does not automatically copy the inherited settings from the parent command. There is a helper routine `.copyInheritedSettings()` for copying the settings when they are wanted.547548### Command-arguments549550For subcommands, you can specify the argument syntax in the call to `.command()` (as shown above). This551is the only method usable for subcommands implemented using a stand-alone executable, but for other subcommands
567 unmodified lines