Skip to content

Commit aacc345

Browse files
authored
docs: add result info to config option #4241 (#4145)
1 parent 7e79af1 commit aacc345

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

@commitlint/cli/src/cli.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ test('should print help', async () => {
581581
582582
Options:
583583
-c, --color toggle colored output [boolean] [default: true]
584-
-g, --config path to the config file [string]
584+
-g, --config path to the config file; result code 9 if config is missing [string]
585585
--print-config print resolved config [string] [choices: "", "text", "json"]
586586
-d, --cwd directory to execute in [string] [default: (Working Directory)]
587587
-e, --edit read last commit message from the specified file or fallbacks to ./.git/COMMIT_EDITMSG [string]

@commitlint/cli/src/cli.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ const cli = yargs(process.argv.slice(2))
4747
},
4848
config: {
4949
alias: 'g',
50-
description: 'path to the config file',
50+
description:
51+
'path to the config file; result code 9 if config is missing',
5152
type: 'string',
5253
},
5354
'print-config': {

docs/reference/cli.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
```sh
44
❯ npx commitlint --help
55

6-
@commitlint/cli@19.3.0 - Lint your commit messages
6+
@commitlint/cli@19.5.0 - Lint your commit messages
77

88
[input] reads from stdin if --edit, --env, --from and --to are omitted
99

1010
Options:
1111
-c, --color toggle colored output [boolean] [default: true]
12-
-g, --config path to the config file [string]
12+
-g, --config path to the config file; result code 9 if config is
13+
missing [string]
1314
--print-config print resolved config
1415
[string] [choices: "", "text", "json"]
1516
-d, --cwd directory to execute in

0 commit comments

Comments
 (0)