From 471ec400b846e46584664c90459418abf7accca2 Mon Sep 17 00:00:00 2001 From: John Gee Date: Thu, 8 Sep 2022 21:19:43 +1200 Subject: [PATCH] Add copyInheritedSettings to README (#1798) * Add copyInheritedSettings to README * Add line break. --- Readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Readme.md b/Readme.md index 4b37c47e7..39c248b04 100644 --- a/Readme.md +++ b/Readme.md @@ -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