audiod: Implement help --long.
[paraslash.git] / audioc.c
index 77a0539..d9478ab 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -97,6 +97,12 @@ I9E_DUMMY_COMPLETER(term);
 static void help_completer(struct i9e_completion_info *ci,
                struct i9e_completion_result *result)
 {
+       char *opts[] = {LSG_AUDIOD_CMD_HELP_OPTS, NULL};
+
+       if (ci->word[0] == '-') {
+               i9e_complete_option(opts, ci, result);
+               return;
+       }
        result->matches = i9e_complete_commands(ci->word, audiod_completers);
 }