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
+2
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
+
You can add alternative names for a command with `.alias()`. ([example](./examples/alias.js))
547
+
546
548
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