Skip to content

Commit d027ff4

Browse files
committed
tests(cmd.git): Support git's new short arguments (and hopefully the earlier one)
1 parent 897fcec commit d027ff4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

libvcs/cmd/git.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def run(
122122
--------
123123
>>> git = Git(dir=tmp_path)
124124
>>> git.run(['help'])
125-
"usage: git [--version] [--help] [-C <path>]..."
125+
"usage: git [...--version] [...--help] [-C <path>]..."
126126
"""
127127

128128
if isinstance(args, Sequence):
@@ -1074,16 +1074,16 @@ def help(
10741074
>>> git = Git(dir=tmp_path)
10751075
10761076
>>> git.help()
1077-
"usage: git [--version] [--help] [-C <path>]..."
1077+
"usage: git [...--version] [...--help] [-C <path>]..."
10781078
10791079
>>> git.help(all=True)
10801080
"See 'git help <command>' to read about a specific subcommand..."
10811081
10821082
>>> git.help(info=True)
1083-
"usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]..."
1083+
"usage: git [...--version] [...--help] [-C <path>] [-c <name>=<value>]..."
10841084
10851085
>>> git.help(man=True)
1086-
"usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]..."
1086+
"usage: git [...--version] [...--help] [-C <path>] [-c <name>=<value>]..."
10871087
"""
10881088
local_flags: list[str] = []
10891089

0 commit comments

Comments
 (0)