Skip to content

Commit

Permalink
Add copyInheritedSettings to README (#1798)
Browse files Browse the repository at this point in the history
* Add copyInheritedSettings to README

* Add line break.
  • Loading branch information
shadowspawn committed Sep 8, 2022
1 parent 8236966 commit 471ec40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Readme.md
Expand Up @@ -543,6 +543,8 @@ Configuration options can be passed with the call to `.command()` and `.addComma
remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other
subcommand is specified ([example](./examples/defaultCommand.js)).

For 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.

### Command-arguments

For subcommands, you can specify the argument syntax in the call to `.command()` (as shown above). This
Expand Down

0 comments on commit 471ec40

Please sign in to comment.