Merge pull request #4263 from chbrown/yargs-command

Add Argv#command(...) to yargs
This commit is contained in:
Masahiro Wakame
2015-05-06 23:28:53 +09:00
+2
View File
@@ -53,6 +53,8 @@ declare module "yargs" {
usage(message: string, options?: { [key: string]: Options }): Argv;
usage(options?: { [key: string]: Options }): Argv;
command(command: string, description: string): Argv;
example(command: string, description: string): Argv;
check(func: (argv: { [key: string]: any }, aliases: { [alias: string]: string }) => boolean): Argv;