Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 689aef5

Browse files
committed
feat(commitizen): document '--' double dash in '--help'
Signed-off-by: Adrian DC <radian.dc@gmail.com>
1 parent 47f79bf commit 689aef5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎commitizen/cli.py‎

Lines changed: 6 additions & 0 deletions
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‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /