]> git.alsa-project.org Git - alsa-utils.git/commitdiff
axfer: print help text of list subcommand
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 7 Dec 2018 09:41:02 +0000 (18:41 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 7 Dec 2018 09:56:15 +0000 (10:56 +0100)
This commit adds help text of list subcommand.

This help text can not be in execution of alias (aplay/arecord) due to
program design.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
axfer/subcmd-list.c

index 1ea9669af31b4d2f8707c509ff60c1d8c8db8989..98a7cf3ae1b8fc1c4cc9e4ccee1b8161422d78de 100644 (file)
@@ -193,7 +193,14 @@ static int list_pcms(snd_pcm_stream_t direction)
 
 static void print_help(void)
 {
-       printf("help for list sub-command.\n");
+       printf(
+"Usage:\n"
+"  axfer list DIRECTION TARGET\n"
+"\n"
+"  where:\n"
+"    DIRECTION = capture | playback\n"
+"    TARGET = device | pcm\n"
+       );
 }
 
 // Backward compatibility to aplay(1).