@@ -54,17 +54,18 @@ Some examples:
54
54
55
55
``` bash
56
56
$ cz bump --help
57
- usage: cz bump [-h] [--dry-run] [--files-only] [--changelog] [--no-verify] [--yes]
58
- [--tag-format TAG_FORMAT] [--bump-message BUMP_MESSAGE]
57
+ usage: cz bump [-h] [--dry-run] [--files-only] [--changelog] [--no-verify]
58
+ [--yes] [-- tag-format TAG_FORMAT] [--bump-message BUMP_MESSAGE]
59
59
[--prerelease {alpha,beta,rc}]
60
- [--increment {MAJOR,MINOR,PATCH}]
60
+ [--increment {MAJOR,MINOR,PATCH}] [--check-consistency]
61
61
62
62
optional arguments:
63
63
-h, --help show this help message and exit
64
64
--dry-run show output to stdout, no commit, no modified files
65
65
--files-only bump version in the files from the config
66
66
--changelog, -ch generate the changelog for the newest version
67
- --no-verify this option bypasses the pre-commit and commit-msg hooks
67
+ --no-verify this option bypasses the pre-commit and commit-msg
68
+ hooks
68
69
--yes accept automatically questions done
69
70
--tag-format TAG_FORMAT
70
71
the format used to tag the commit and read it, use it
@@ -76,18 +77,30 @@ optional arguments:
76
77
choose type of prerelease
77
78
--increment {MAJOR,MINOR,PATCH}
78
79
manually specify the desired increment
80
+ --check-consistency, -cc
81
+ check consistency among versions defined in commitizen
82
+ configuration and version_files
79
83
```
80
84
81
- ## Configuration
82
-
83
- ### ` changelog `
85
+ ### ` --changelog `
84
86
85
87
Generate a ** changelog** along with the new version and tag when bumping.
86
88
87
89
``` bash
88
90
cz bump --changelog
89
91
```
90
92
93
+ ### ` --check-consistency `
94
+
95
+ Check whether the versions defined in ` version_files ` and the version in commitizen
96
+ configuration are consistent before bumping version.
97
+
98
+ ``` bash
99
+ cz bump --check-consistency
100
+ ```
101
+
102
+ ## Configuration
103
+
91
104
### ` tag_format `
92
105
93
106
It is used to read the format from the git tags, and also to generate the tags.
0 commit comments