audiod: Implement --config-file option.
[paraslash.git] / recv_common.c
index 03f569f..5f2412b 100644 (file)
@@ -84,3 +84,21 @@ void *check_receiver_arg(char *ra, int *receiver_num)
        PARA_ERROR_LOG("receiver not found\n");
        return NULL;
 }
+
+void print_receiver_helps(int detailed)
+{
+       int i;
+
+       printf_or_die("\nAvailable receivers: \n\t");
+       FOR_EACH_RECEIVER(i)
+               printf_or_die("%s%s", i? " " : "", receivers[i].name);
+       printf_or_die("\n\n");
+       FOR_EACH_RECEIVER(i) {
+               struct receiver *r = receivers + i;
+
+               if (!r->help.short_help)
+                       continue;
+               printf_or_die("Options for %s:\n", r->name);
+               ggo_print_help(&r->help, detailed);
+       }
+}