electron
Advanced tools
Comparing version 0.1.1 to 0.1.2
0.1.2 / 2012-05-23 | ||
================== | ||
* refactor parse to return `this` | ||
0.1.1 / 2012-05-22 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -8,2 +8,2 @@ var CLI = require('./electron/cli'); | ||
exports.CLI = CLI; | ||
exports.version = '0.1.1'; | ||
exports.version = '0.1.2'; |
@@ -35,7 +35,8 @@ var Drip = require('drip') | ||
if (~argv.modes.indexOf('v') || ~argv.modes.indexOf('version')) | ||
return displayVersion.call(this); | ||
if (~argv.modes.indexOf('h') || ~argv.modes.indexOf('help')) | ||
return displayHelp.call(this); | ||
if (command.length) | ||
displayVersion.call(this); | ||
else if (~argv.modes.indexOf('h') || ~argv.modes.indexOf('help')) | ||
displayHelp.call(this); | ||
else if (command.length) | ||
this.emit(command, argv, null, null); | ||
return this; | ||
}; | ||
@@ -42,0 +43,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Event-based tiny CLI famework.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
6874
225