Skip to content

Commit

Permalink
feat(commitizen): document '--' double dash in '--help'
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian DC <radian.dc@gmail.com>
  • Loading branch information
AdrianDC authored and Lee-W committed Nov 16, 2024
1 parent 02dd9d0 commit 9aa3076
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions commitizen/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ def __call__(
"default": 0,
"help": "length limit of the commit message; 0 for no limit",
},
{
"name": ["--"],
"action": "store_true",
"dest": "double_dash",
"help": "Positional arguments separator (recommended)",
},
],
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
usage: cz commit [-h] [--retry] [--no-retry] [--dry-run]
[--write-message-to-file FILE_PATH] [-s] [-a] [-e]
[-l MESSAGE_LENGTH_LIMIT]
[-l MESSAGE_LENGTH_LIMIT] [--]

create new commit

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

0 comments on commit 9aa3076

Please sign in to comment.