From 3e803adfe59fc70f73032a4f4d6dd7dba52462fc Mon Sep 17 00:00:00 2001 From: Alexander Marks Date: Mon, 7 Jan 2019 14:09:34 -0800 Subject: [PATCH 1/2] Add cli argument description for --version --- packages/cli/CHANGELOG.md | 5 +++-- packages/cli/src/args.ts | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 10ed87735..13d5dfe36 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -5,7 +5,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). - +## Unreleased +* Add `--help` description for `--version`. ## v1.9.4 [12-23-2018] @@ -42,7 +43,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). * Update package-lock to pickup wct-local 2.1.3 to fix Firefox 63 testing. ## v1.8.0 [08-15-2018] -* Fix a case where the CustomElementsEs5Adapter script was not added to the +* Fix a case where the CustomElementsEs5Adapter script was not added to the builds when the `js.compile` is an object with a target property of es5. * Updated web-component-tester to v6.8.0, which changes the set of browsers when testing on Travis CI. diff --git a/packages/cli/src/args.ts b/packages/cli/src/args.ts index 55fc79127..7eda5da19 100644 --- a/packages/cli/src/args.ts +++ b/packages/cli/src/args.ts @@ -116,6 +116,12 @@ export const globalArguments: ArgDescriptor[] = [ alias: 'q', group: 'global', }, + { + name: 'version', + description: 'Print the current version.', + type: Boolean, + group: 'global', + }, ]; /** From fedf4ad1ed875d9a14469ebf511771e6530df1c4 Mon Sep 17 00:00:00 2001 From: Alexander Marks Date: Mon, 7 Jan 2019 16:14:08 -0800 Subject: [PATCH 2/2] Use a CLI --version description that matches polyserve --- packages/cli/src/args.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/args.ts b/packages/cli/src/args.ts index 7eda5da19..7db0d1e32 100644 --- a/packages/cli/src/args.ts +++ b/packages/cli/src/args.ts @@ -118,7 +118,7 @@ export const globalArguments: ArgDescriptor[] = [ }, { name: 'version', - description: 'Print the current version.', + description: 'Print version info.', type: Boolean, group: 'global', },