From 1b031a6500d793a357a00928eb13244a554f1ded Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Thu, 31 Jul 2025 11:11:57 +0100 Subject: [PATCH] Fix printing of help and version info - attempt 2 --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }