From d310228d9f95c161a29ccc9531e2d47f3cbdd5a4 Mon Sep 17 00:00:00 2001 From: John Gee Date: Thu, 8 Sep 2022 21:09:17 +1200 Subject: [PATCH 1/2] Add copyInheritedSettings to README --- Readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Readme.md b/Readme.md index cdbd97df2..f295589b0 100644 --- a/Readme.md +++ b/Readme.md @@ -541,6 +541,7 @@ 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 From c62d41d012b3c685de5c2d8c80f7cca50170f335 Mon Sep 17 00:00:00 2001 From: John Gee Date: Thu, 8 Sep 2022 21:13:28 +1200 Subject: [PATCH 2/2] Add line break. --- Readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Readme.md b/Readme.md index f295589b0..ec6697c3b 100644 --- a/Readme.md +++ b/Readme.md @@ -542,6 +542,7 @@ remove the command from the generated help output. Specifying `isDefault: true` 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