File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ int main(int argc, char** argv)
39
39
std::cout << " git2cpp version " << GIT2CPP_VERSION_STRING << " (libgit2 " << LIBGIT2_VERSION << " )" << std::endl;
40
40
}
41
41
42
- if (app.get_subcommands ().size () == 0 )
42
+ if (app.get_subcommands ().size () == 0 && !version )
43
43
{
44
44
std::cout << app.help () << std::endl;
45
45
}
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ def test_version(git2cpp_path, arg):
8
8
p = subprocess .run (cmd , capture_output = True )
9
9
assert p .returncode == 0
10
10
assert p .stderr == b''
11
- assert p .stdout .startswith (b'git2cpp ' )
11
+ assert p .stdout .startswith (b'git2cpp version ' )
12
+ assert p .stdout .count (b'\n ' ) == 1
12
13
13
14
14
15
def test_error_on_unknown_option (git2cpp_path ):
You can’t perform that action at this time.
0 commit comments