axfer: print help text of list subcommand

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>
This commit is contained in:
Takashi Sakamoto 2018-12-07 18:41:02 +09:00 committed by Takashi Iwai
parent a4782feac3
commit c75b96be49

View file

@ -193,7 +193,14 @@ static int list_pcms(snd_pcm_stream_t direction)
static void print_help(void) 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). // Backward compatibility to aplay(1).