Skip to content
Myr

Add mention of .alias() to README. (#1833)

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

authored by John Gee · committed by GitHub · parent 5a201ec · Browse files · 2 files+39 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

2 files+39 added−0 removed

  • other:+39 added−0 removed

2 files+39 added−0 removed

added:examples/alias.js+37 added
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)).545546You can add alternative names for a command with `.alias()`. ([example](./examples/alias.js))547548For 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.549550### Command-arguments551
578 unmodified lines