From: Takashi Sakamoto Date: Fri, 7 Dec 2018 09:41:02 +0000 (+0900) Subject: axfer: print help text of list subcommand X-Git-Tag: v1.1.8~15 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=c75b96be49f3655554455c6a5d48fa7f6ba326b4;p=alsa-utils.git 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 Signed-off-by: Takashi Iwai --- diff --git a/axfer/subcmd-list.c b/axfer/subcmd-list.c index 1ea9669..98a7cf3 100644 --- a/axfer/subcmd-list.c +++ b/axfer/subcmd-list.c @@ -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).