Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
feat: 🎸 improve help screen
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 1, 2020
1 parent 799fff2 commit 1838c1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions lib/parseArgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
`
};

Expand Down
2 changes: 1 addition & 1 deletion lib/util/getGitRootDir.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit 1838c1c

Please sign in to comment.