Skip to content

Commit 9aa3076

Browse files
AdrianDCLee-W
authored andcommitted
feat(commitizen): document '--' double dash in '--help'
Signed-off-by: Adrian DC <[email protected]>
1 parent 02dd9d0 commit 9aa3076

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

commitizen/cli.py

+6
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ def __call__(
168168
"default": 0,
169169
"help": "length limit of the commit message; 0 for no limit",
170170
},
171+
{
172+
"name": ["--"],
173+
"action": "store_true",
174+
"dest": "double_dash",
175+
"help": "Positional arguments separator (recommended)",
176+
},
171177
],
172178
},
173179
{

tests/commands/test_commit_command/test_commit_command_shows_description_when_use_help_option.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
usage: cz commit [-h] [--retry] [--no-retry] [--dry-run]
22
[--write-message-to-file FILE_PATH] [-s] [-a] [-e]
3-
[-l MESSAGE_LENGTH_LIMIT]
3+
[-l MESSAGE_LENGTH_LIMIT] [--]
44

55
create new commit
66

@@ -19,3 +19,4 @@ options:
1919
-e, --edit edit the commit message before committing
2020
-l, --message-length-limit MESSAGE_LENGTH_LIMIT
2121
length limit of the commit message; 0 for no limit
22+
-- Positional arguments separator (recommended)

0 commit comments

Comments
 (0)