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
+1-1
Original file line number
Diff line number
Diff line change
@@ -546,7 +546,7 @@ subcommand is specified ([example](./examples/defaultCommand.js)).
546
546
547
547
You can add alternative names for a command with `.alias()`. ([example](./examples/alias.js))
548
548
549
-
Commands added with `.command()` automatically inherit settings for which inheritance is meaningful from the parent command, but only upon the subcommandcreation. The setting changes made after calling `.command()` are not inherited.
549
+
`.command()` automatically copies the inherited settings from the parent command to the newly created subcommand. This is only done during creation, any later setting changes to the parent are not inherited.
550
550
551
551
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.
0 commit comments