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();