Skip to content

Commit 471ec40

Browse files
authored
Add copyInheritedSettings to README (#1798)
* Add copyInheritedSettings to README * Add line break.
1 parent 8236966 commit 471ec40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,8 @@ Configuration options can be passed with the call to `.command()` and `.addComma
543543
remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other
544544
subcommand is specified ([example](./examples/defaultCommand.js)).
545545

546+
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.
547+
546548
### Command-arguments
547549

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

0 commit comments

Comments
 (0)