From f679b779260001cc964af4c0d5bc15678fe95b63 Mon Sep 17 00:00:00 2001 From: Noah Prail Date: Tue, 14 Jul 2020 10:48:00 -0400 Subject: [PATCH 1/2] docs(README): Switch -h to --help since -h isn't valid --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0cc8204..7ea93c1 100644 --- a/README.md +++ b/README.md @@ -37,10 +37,10 @@ Install the `apkup` package globally or locally: ```bash npm i -g apkup -apkup -h +apkup --help # or if you just want to use the CLI locally -npx apkup -h +npx apkup --help # or install the library into your project npm i -D apkup From 8145b5a8f87e2b86b2ba9c9405db2b85de7b64c2 Mon Sep 17 00:00:00 2001 From: Noah Prail Date: Tue, 14 Jul 2020 10:57:37 -0400 Subject: [PATCH 2/2] fix(cli): Add -h alias to --help closes #27 --- src/cli/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/index.ts b/src/cli/index.ts index 200d49c..8f69628 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -33,4 +33,5 @@ const argv = yargs .command(promote) .command(upload) .env('APKUP') - .help('help').argv + .help('help') + .alias('help', 'h').argv