Skip to content
Myr

Add note on inherited settings to docs

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

(cherry picked from commit ac955dc078660e3ec99d40333652bcc1941c5188)

authored by aweebit · committed by Abe Tomoaki · parent dde6bb5 · 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
544 unmodified lines
545subcommand is specified ([example](./examples/defaultCommand.js)).546547You can add alternative names for a command with `.alias()`. ([example](./examples/alias.js))548549Commands added with `.command()` automatically inherit settings for which inheritance is meaningful from the parent command, but only upon the subcommand creation. The setting changes made after calling `.command()` are not inherited.550551For 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.552553### Command-arguments554
594 unmodified lines