All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liam Girdwood <liam.r.girdwood@linux.intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>,
	alsa-devel@alsa-project.org
Subject: [PATCH] alsatplg: fix topology compiler long option parsing
Date: Tue,  6 Jun 2017 15:43:25 +0100	[thread overview]
Message-ID: <1496760205-6075-1-git-send-email-liam.r.girdwood@linux.intel.com> (raw)

verbose, compile and output options all have a parameter.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
 topology/topology.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/topology/topology.c b/topology/topology.c
index 33c3276..6d876ee 100644
--- a/topology/topology.c
+++ b/topology/topology.c
@@ -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;
-- 
2.11.0

             reply	other threads:[~2017-06-06 14:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-06 14:43 Liam Girdwood [this message]
2017-06-14 11:25 [PATCH] alsatplg: fix topology compiler long option parsing Liam Girdwood
2017-06-14 11:58 ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1496760205-6075-1-git-send-email-liam.r.girdwood@linux.intel.com \
    --to=liam.r.girdwood@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.