diff --git a/src/main.cpp b/src/main.cpp index 3635733..223ddce 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -42,8 +42,7 @@ int main(int argc, char** argv) { std::cout << "git2cpp version " << GIT2CPP_VERSION_STRING << " (libgit2 " << LIBGIT2_VERSION << ")" << std::endl; } - - if (app.get_subcommands().size() == 0 && !version) + else if (app.get_subcommands().size() == 0) { std::cout << app.help() << std::endl; }