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)
3939 std::cout << " git2cpp version " << GIT2CPP_VERSION_STRING << " (libgit2 " << LIBGIT2_VERSION << " )" << std::endl;
4040 }
4141
42- if (app.get_subcommands ().size () == 0 )
42+ if (app.get_subcommands ().size () == 0 && !version )
4343 {
4444 std::cout << app.help () << std::endl;
4545 }
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ def test_version(git2cpp_path, arg):
88 p = subprocess .run (cmd , capture_output = True )
99 assert p .returncode == 0
1010 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
1213
1314
1415def test_error_on_unknown_option (git2cpp_path ):
You can’t perform that action at this time.
0 commit comments