cli: use new generic arg parser API
authorBert Vermeulen <bert@biot.com>
Fri, 3 Aug 2012 09:48:41 +0000 (11:48 +0200)
committerBert Vermeulen <bert@biot.com>
Fri, 3 Aug 2012 09:48:41 +0000 (11:48 +0200)
sigrok-cli.c

index f54828265508449f920cd7977610574e719724ed..38ea352cc842228f80d29884c245ae16d56a1b69 100644 (file)
@@ -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");