mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:35:42 +01:00
alsatplg: fix topology compiler long option parsing
verbose, compile and output options all have a parameter. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
1a0571bd78
commit
1e96c5f50e
1 changed files with 4 additions and 4 deletions
|
@ -54,10 +54,10 @@ int main(int argc, char *argv[])
|
||||||
snd_tplg_t *snd_tplg;
|
snd_tplg_t *snd_tplg;
|
||||||
static const char short_options[] = "hc:v:o:";
|
static const char short_options[] = "hc:v:o:";
|
||||||
static const struct option long_options[] = {
|
static const struct option long_options[] = {
|
||||||
{"help", 0, 0, 'h'},
|
{"help", 0, NULL, 'h'},
|
||||||
{"verbose", 0, 0, 'v'},
|
{"verbose", 1, NULL, 'v'},
|
||||||
{"compile", 0, 0, 'c'},
|
{"compile", 1, NULL, 'c'},
|
||||||
{"output", 0, 0, 'o'},
|
{"output", 1, NULL, 'o'},
|
||||||
{0, 0, 0, 0},
|
{0, 0, 0, 0},
|
||||||
};
|
};
|
||||||
char *source_file = NULL, *output_file = NULL;
|
char *source_file = NULL, *output_file = NULL;
|
||||||
|
|
Loading…
Reference in a new issue