Skip to content

Commit 8fbf6c1

Browse files
authored
Fix printing of help and version info - attempt 2 (#30)
1 parent c2b35cb commit 8fbf6c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ int main(int argc, char** argv)
4242
{
4343
std::cout << "git2cpp version " << GIT2CPP_VERSION_STRING << " (libgit2 " << LIBGIT2_VERSION << ")" << std::endl;
4444
}
45-
46-
if (app.get_subcommands().size() == 0 && !version)
45+
else if (app.get_subcommands().size() == 0)
4746
{
4847
std::cout << app.help() << std::endl;
4948
}

0 commit comments

Comments
 (0)