audiod: Implement help --long.
[paraslash.git] / audioc.c
index 77a0539d2e4513a2e9cc3f926e303f264d08d3b8..d9478ab9c6596cad31dc8e31950dcb0a428adbbb 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)
 {
 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);
 }
 
        result->matches = i9e_complete_commands(ci->word, audiod_completers);
 }