Fix issue with printing longHelp
Corrected a bug where the parser misinterpreted `help cd` as an invalid
command, expecting `helpcd`. This problem was caused by an issue within
the help grammar rules.
Issue: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/234
Change-Id: I3494f99013d1b119ce255ab68faf448b4bc25b1f
diff --git a/src/grammars.hpp b/src/grammars.hpp
index 51361fc..a70cce0 100644
--- a/src/grammars.hpp
+++ b/src/grammars.hpp
@@ -130,7 +130,7 @@
x3::eps;
auto const help = x3::rule<struct help_class, help_>{"help"} =
- help_::name > createCommandSuggestions >> -command_names;
+ help_::name >> -(space_separator >> createCommandSuggestions > -(command_names));
struct datastore_symbol_table : x3::symbols<Datastore> {
datastore_symbol_table()