From: Bert Vermeulen Date: Fri, 3 Aug 2012 09:48:41 +0000 (+0200) Subject: cli: use new generic arg parser API X-Git-Tag: sigrok-cli-0.4.0~87 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3e8e0c2d92a6410439d5ff9d2088ecdc5d53b930;p=sigrok-cli.git cli: use new generic arg parser API --- diff --git a/sigrok-cli.c b/sigrok-cli.c index f548282..38ea352 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -1143,7 +1143,7 @@ static void load_input_file_format(void) char *fmtspec = NULL; if (opt_input_format) { - fmtargs = parse_generic_arg(opt_input_format); + fmtargs = parse_generic_arg(opt_input_format, TRUE); fmtspec = g_hash_table_lookup(fmtargs, "sigrok_key"); } @@ -1152,7 +1152,7 @@ static void load_input_file_format(void) /* The exact cause was already logged. */ return; } -; + if (fmtargs) g_hash_table_remove(fmtargs, "sigrok_key");