Comparing version 1.0.4 to 1.0.5
@@ -88,2 +88,3 @@ export declare type ArgumentValue = any; | ||
withHandler(handler: CommandHandler): CliCommand; | ||
help(): void; | ||
withHelpHandler(handler: (command: CommandDefinition) => void): CliCommand; | ||
@@ -90,0 +91,0 @@ withVersion(version: string, handler?: (command: CommandDefinition) => void): CliCommand; |
@@ -96,2 +96,5 @@ "use strict"; | ||
} | ||
help() { | ||
this.helpHandler(this.dump()); | ||
} | ||
withHelpHandler(handler) { | ||
@@ -98,0 +101,0 @@ this.helpHandler = handler; |
{ | ||
"name": "cilly", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "The last library you'll ever need for building intuitive, robust and flexible CLI tools with Node.js and TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
44874
1049