You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -543,6 +543,8 @@ Configuration options can be passed with the call to `.command()` and `.addComma
543
543
remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other
544
544
subcommand is specified ([example](./examples/defaultCommand.js)).
545
545
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
+
546
548
### Command-arguments
547
549
548
550
For subcommands, you can specify the argument syntax in the call to `.command()` (as shown above). This
0 commit comments