We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30347be commit c38e92cCopy full SHA for c38e92c
src/CAC.ts
@@ -65,8 +65,8 @@ class CAC extends EventEmitter {
65
/**
66
* Add a sub-command
67
*/
68
- command(rawName: string, description: string, config?: CommandConfig) {
69
- const command = new Command(rawName, description, config, this)
+ command(rawName: string, description?: string, config?: CommandConfig) {
+ const command = new Command(rawName, description || '', config, this)
70
command.globalCommand = this.globalCommand
71
this.commands.push(command)
72
return command
0 commit comments