From 1838c1c5cb96d37b116234bb1ebe06721035ca46 Mon Sep 17 00:00:00 2001 From: streamich Date: Sat, 1 Feb 2020 18:35:04 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20improve=20help=20screen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/parseArgs.js | 22 +++++++++++----------- lib/util/getGitRootDir.js | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/parseArgs.js b/lib/parseArgs.js index 70f5d218..38084fa3 100644 --- a/lib/parseArgs.js +++ b/lib/parseArgs.js @@ -53,18 +53,18 @@ const options = { Usage: git-cz [options] options: - -h, --help show usage information - -v, --version print version info and exit - --non-interactive [non-interactive cli params] run git-cz non-interactive mode + -h, --help show usage information + -v, --version print version info and exit + --non-interactive run git-cz in non-interactive mode - non-interactive cli params: - --type - --subject - --scope - --body - --breaking - --issues - --lerna + non-interactive mode options: + --type type of the commit, defaults to "chore" + --subject message of the commit, defaults to "automated commit" + --scope semantic commit scope + --body extended description of the commit + --breaking description of breaking changes, if any + --issues GitHub issues this commit closed, e.g "#123" + --lerna Lerna mono-repo packages this commit affects ` }; diff --git a/lib/util/getGitRootDir.js b/lib/util/getGitRootDir.js index 20219828..1e25c8f3 100644 --- a/lib/util/getGitRootDir.js +++ b/lib/util/getGitRootDir.js @@ -1,7 +1,7 @@ const {execSync} = require('child_process'); const getGitRootDir = () => { - const devNull = process.platform === 'win32' ? ' nul' : '/dev/null' + const devNull = process.platform === 'win32' ? ' nul' : '/dev/null'; const dir = execSync('git rev-parse --show-toplevel 2>' + devNull) .toString() .trim();