Merge "main: fix complete outputting doc page" into main

This commit is contained in:
71rd
2025-05-26 21:33:41 +00:00
committed by Lix Systems Gerrit
+2 -2
View File
@@ -584,6 +584,8 @@ void mainWrapped(AsyncIoRoot & aio, int argc, char * * argv)
if (!args.helpRequested && !args.completions) throw;
}
if (args.completions) return;
if (args.helpRequested) {
std::vector<std::string> subcommand;
MultiCommand * command = &args;
@@ -598,8 +600,6 @@ void mainWrapped(AsyncIoRoot & aio, int argc, char * * argv)
return;
}
if (args.completions) return;
if (args.showVersion) {
printVersion(programName);
return;