Skip to content

Commit 9863f50

Browse files
committed
cmd: fix kwarg formatting in docstring example
Update the example to accurately reflect the output of `transform_kwarg`. When a key is longer than one letter and its value is a non-empty, non-boolean type, it is transformed into the `--key=value` format, rather than missing the double dashes or using spaces. Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
1 parent d0318a6 commit 9863f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ def _call_process(
15721572
15731573
turns into::
15741574
1575-
git rev-list max-count 10 --header master
1575+
git rev-list --max-count=10 --header=master
15761576
15771577
:return:
15781578
Same as :meth:`execute`. If no args are given, used :meth:`execute`'s

0 commit comments

Comments
 (0)