Comparing version 2.0.1 to 2.0.2
@@ -40,2 +40,3 @@ 'use strict' | ||
let haveYargs | ||
let yargs | ||
@@ -48,4 +49,3 @@ let opts | ||
yargs = require('yargs') | ||
opts = yargs.argv | ||
argv = opts._ | ||
haveYargs = true | ||
} catch (_) { | ||
@@ -76,2 +76,6 @@ argv = process.argv.slice(2) | ||
setImmediate(() => { | ||
if (haveYargs) { | ||
opts = yargs.argv | ||
argv = opts._ | ||
} | ||
started = true | ||
@@ -78,0 +82,0 @@ try { |
{ | ||
"name": "@iarna/cli", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Some simple CLI scaffolding for promise returning applications.", | ||
@@ -5,0 +5,0 @@ "main": "app.js", |
@@ -5,3 +5,3 @@ # @iarna/cli | ||
![Travis](https://travis-ci.com/iarna/cli.svg?branch=latest) | ||
[![Coverage Status](https://coveralls.io/repos/github/iarna/cli/badge.svg?branch=latest)](https://coveralls.io/github/iarna/cli?branch=latest) | ||
@@ -8,0 +8,0 @@ ## EXAMPLE |
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
9854
97