@@ -9,26 +9,29 @@ pip install commitlint
99## Usage
1010
1111```
12- commitlint [-h] [-V] [--file FILE] [--hash HASH] [--from-hash FROM_HASH] [--to-hash TO_HASH] [--skip-detail] [--hide-input]
12+ commitlint [-h] [-V] [--file FILE] [--hash HASH] [--from-hash FROM_HASH] [--to-hash TO_HASH]
13+ [--skip-detail] [--hide-input]
1314 [-q | -v]
15+ [--max-header-length MAX_HEADER_LENGTH]
1416 [commit_message]
1517
1618Check if a commit message follows the Conventional Commits format.
1719
1820Positional arguments:
19- commit_message The commit message to be checked.
21+ commit_message The commit message to be checked.
2022
2123Options:
22- -h, --help Show this help message and exit.
23- -V, --version Show the program's version number and exit.
24- --file FILE Path to a file containing the commit message.
25- --hash HASH Commit hash.
26- --from-hash FROM_HASH Commit hash to start checking from.
27- --to-hash TO_HASH Commit hash to check up to.
28- --skip-detail Skip detailed error messages.
29- --hide-input Hide input from stdout.
30- -q, --quiet Suppress stdout and stderr.
31- -v, --verbose Enable verbose output.
24+ -h, --help Show this help message and exit.
25+ --file FILE Path to a file containing the commit message.
26+ -V, --version Show the program's version number and exit.
27+ --hash HASH Commit hash.
28+ --from-hash FROM_HASH Commit hash to start checking from.
29+ --to-hash TO_HASH Commit hash to check up to.
30+ --skip-detail Skip detailed error messages.
31+ --hide-input Hide input from stdout.
32+ -q, --quiet Suppress stdout and stderr.
33+ -v, --verbose Enable verbose output.
34+ --max-header-length LENGTH Maximum header length to check.
3235```
3336
3437## Examples
@@ -79,6 +82,12 @@ Run `commitlint` in verbose mode:
7982$ commitlint --verbose " chore: my commit message"
8083```
8184
85+ Run ` commitlint ` with maximum header length check:
86+
87+ ``` shell
88+ $ commitlint --max-header-length 72 " chore: my commit message"
89+ ```
90+
8291Check the version:
8392
8493``` shell
0 commit comments