]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsatplg: fix topology compiler long option parsing
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Wed, 14 Jun 2017 11:25:33 +0000 (12:25 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Jun 2017 11:57:21 +0000 (13:57 +0200)
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>
topology/topology.c

index ffe2f0588a8cf9203f0588f06bba1c89e3497dff..097c25507d9f273e2c4bba832920770e588124d0 100644 (file)
@@ -54,10 +54,10 @@ int main(int argc, char *argv[])
        snd_tplg_t *snd_tplg;
        static const char short_options[] = "hc:v:o:";
        static const struct option long_options[] = {
-               {"help", 0, 0, 'h'},
-               {"verbose", 0, 0, 'v'},
-               {"compile", 0, 0, 'c'},
-               {"output", 0, 0, 'o'},
+               {"help", 0, NULL, 'h'},
+               {"verbose", 1, NULL, 'v'},
+               {"compile", 1, NULL, 'c'},
+               {"output", 1, NULL, 'o'},
                {0, 0, 0, 0},
        };
        char *source_file = NULL, *output_file = NULL;