Add optional function parameter to command()

This commit is contained in:
Niklas Mollenhauer
2015-10-07 20:56:13 +02:00
parent 66f88ec518
commit 2d69a5f8bf
2 changed files with 17 additions and 0 deletions
+1
View File
@@ -54,6 +54,7 @@ declare module "yargs" {
usage(options?: { [key: string]: Options }): Argv;
command(command: string, description: string): Argv;
command(command: string, description: string, fn: (args: Argv) => void): Argv;
example(command: string, description: string): Argv;