Skip to content

Commit 9aa3076

Browse files
AdrianDCLee-W
authored andcommitted
feat(commitizen): document '--' double dash in '--help'
Signed-off-by: Adrian DC <radian.dc@gmail.com>
1 parent 02dd9d0 commit 9aa3076

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy