It's now also used in vshCompleteHelpCommand which is outside of the
conditionally compiled code.
Fixes: 80f70c74a7
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
return ret;
}
-#if WITH_READLINE
-
-/* -----------------
- * Readline stuff
- * -----------------
- */
/**
* vshReadlineCommandGenerator:
*
- * Generator function for command completion.
+ * Generator function for command completion. Used also for completing the
+ * '--command' option of the 'help' command.
*
* Returns a string list of all commands, or NULL on failure.
*/
return g_steal_pointer(&ret);
}
+
+#if WITH_READLINE
+
+/* -----------------
+ * Readline stuff
+ * -----------------
+ */
+
+
static char **
vshReadlineOptionsGenerator(const vshCmdDef *cmd,
vshCmd *last)