Comparing version 0.0.1 to 0.0.2
import { LooseObject } from './common/types'; | ||
export declare type CliArgParams<O = LooseObject> = [] | [string] | [string, string] | [string, O] | [string, string, O]; | ||
export declare type CliArgParams<O = LooseObject> = [] | [string] | [O] | [string, string] | [string, O] | [string, string, O]; | ||
interface Defaults<O = LooseObject> { | ||
@@ -4,0 +4,0 @@ arg: string; |
@@ -8,5 +8,8 @@ "use strict"; | ||
var arg = defaults.arg, description = defaults.description, opts = defaults.opts || {}; | ||
if (params.length === 1) { | ||
if (params.length === 1 && isType_1.isStr(params[0])) { | ||
arg = params[0]; | ||
} | ||
else if (params.length === 1 && isType_1.isObj(params[0])) { | ||
opts = params[0]; | ||
} | ||
else if (params.length === 2 && isType_1.isStr(params[1])) { | ||
@@ -13,0 +16,0 @@ (_a = params, arg = _a[0], description = _a[1]); |
@@ -6,3 +6,3 @@ { | ||
"name": "@libj/cli", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Cli toolbox", | ||
@@ -29,3 +29,3 @@ "author": "Sergey Poskachey <seregynp@gmail.com>", | ||
], | ||
"gitHead": "81f6263a52240d9bd9bdd84a04a89892816768e8" | ||
"gitHead": "63a12cd189e99a79ea5f41c13667f6e4110db442" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9935
112