From 43478c808804359269d3afcc6d7a07fb128c9272 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Wed, 31 Jan 2018 18:06:35 -0800 Subject: [PATCH] fix: set helpValue --- package.json | 4 ++-- src/cache.ts | 1 + test/command.test.ts | 1 + yarn.lock | 12 ++++++------ 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index d66d7b5e..35919eb2 100644 --- a/package.json +++ b/package.json @@ -5,14 +5,14 @@ "author": "Jeff Dickey @jdxcode", "bugs": "https://github.com/anycli/command/issues", "dependencies": { - "@anycli/parser": "^3.0.1", + "@anycli/parser": "^3.0.2", "cli-ux": "^3.3.10", "debug": "^3.1.0", "lodash": "^4.17.4", "tslib": "^1.9.0" }, "devDependencies": { - "@anycli/config": "^0.2.4", + "@anycli/config": "^0.2.6", "@anycli/tslint": "^0.2.1", "@commitlint/cli": "^6.0.5", "@commitlint/config-conventional": "^6.0.4", diff --git a/src/cache.ts b/src/cache.ts index 3bd0be74..67dd9605 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -35,6 +35,7 @@ export function convertToCached(c: Config.ICommand, opts: ConvertToCachedOptions description: flag.description, hidden: flag.hidden, required: flag.required, + helpValue: flag.helpValue, } }), args: c.args.map(a => ({ diff --git a/test/command.test.ts b/test/command.test.ts index 60026e8c..0c9f2320 100644 --- a/test/command.test.ts +++ b/test/command.test.ts @@ -101,6 +101,7 @@ describe('command', () => { hidden: true, required: false, type: 'option', + helpValue: undefined, } }, args: [ diff --git a/yarn.lock b/yarn.lock index e42f195b..9a56b37d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,9 +2,9 @@ # yarn lockfile v1 -"@anycli/config@^0.2.4": - version "0.2.4" - resolved "https://registry.yarnpkg.com/@anycli/config/-/config-0.2.4.tgz#957e4f174cadd397d9bdd81d3552544a8214273e" +"@anycli/config@^0.2.6": + version "0.2.6" + resolved "https://registry.yarnpkg.com/@anycli/config/-/config-0.2.6.tgz#d40709a61704907d4d6e7dcab6bbf124ab74e9ad" dependencies: cli-ux "^3.3.10" debug "^3.1.0" @@ -13,9 +13,9 @@ lodash "^4.17.4" read-pkg "^3.0.0" -"@anycli/parser@^3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.0.1.tgz#24a2bca4abe1e1ffb91b0210b709b3ec15ee4ea4" +"@anycli/parser@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.0.2.tgz#69af00b6b6f0cc6da4405cf44dc29b2d14d30c6e" dependencies: "@anycli/screen" "^0.0.3" chalk "^2.3.0"