We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b811507 commit 0622e53Copy full SHA for 0622e53
src/main.cpp
@@ -28,12 +28,17 @@ int main(int argc, char** argv)
28
branch_subcommand(lg2_obj, app);
29
checkout_subcommand(lg2_obj, app);
30
31
- app.parse(argc, argv);
+ CLI11_PARSE(app, argc, argv);
32
33
if (version->count())
34
{
35
std::cout << "git2cpp version " << GIT2CPP_VERSION_STRING << " (libgit2 " << LIBGIT2_VERSION << ")" << std::endl;
36
}
37
+
38
+ if (app.get_subcommands().size() == 0)
39
+ {
40
+ std::cout << app.help() << std::endl;
41
+ }
42
43
catch (const CLI::Error& e)
44
0 commit comments