Comparing version 1.2.5 to 1.2.6
@@ -252,4 +252,3 @@ "use strict"; | ||
} | ||
commandFunction.bind(this)(); | ||
this.done = true; | ||
commandFunction.bind(this)(); | ||
} | ||
@@ -278,3 +277,3 @@ } | ||
CLI.prototype.runcom = function(fn) { | ||
if (!this.done){ | ||
if (typeof(fn) !== "function"){ | ||
@@ -290,5 +289,4 @@ throw new E("expected-type-is-function", fn); | ||
fn.bind(this)(rc); | ||
}; | ||
this.done = true; | ||
}; | ||
} | ||
}; | ||
@@ -295,0 +293,0 @@ |
{ | ||
"name": "n-cli", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "a usefull toolset for node commandline applications", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
16708