From 5304b08c2d7db953109d35295ce42ad3a86f134e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 1 Sep 2016 07:41:23 +0200 Subject: [PATCH] Improve error handling for invalid CLI commands fixes #12596 --- lib/cli/clicommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/clicommand.cpp b/lib/cli/clicommand.cpp index d4e830a04..714729220 100644 --- a/lib/cli/clicommand.cpp +++ b/lib/cli/clicommand.cpp @@ -207,7 +207,7 @@ found_command: visibleDesc.add(vdesc); } - if (autocomplete) + if (autocomplete || !command) return true; po::options_description adesc;