X-Git-Url: http://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=options.c;h=8d17e33cc0e8fd7b4998095ab7c8e9de1aed214a;hp=ebd620d597b37417dcd65338da4b7202b274dc16;hb=6c94f0c1cd6cf6c146851e4e87b9e31b1b17d41d;hpb=c9c30f53c4c639d73cadc7c58c28a69090b41261 diff --git a/options.c b/options.c index ebd620d..8d17e33 100644 --- a/options.c +++ b/options.c @@ -31,7 +31,7 @@ gboolean opt_wait_trigger = FALSE; gchar *opt_input_file = NULL; gchar *opt_output_file = NULL; gchar *opt_drv = NULL; -gchar *opt_config = NULL; +gchar **opt_configs = NULL; gchar *opt_channels = NULL; gchar *opt_channel_group = NULL; gchar *opt_triggers = NULL; @@ -79,7 +79,6 @@ static gboolean check_ ## option \ } CHECK_ONCE(opt_drv) -CHECK_ONCE(opt_config) CHECK_ONCE(opt_input_format) CHECK_ONCE(opt_output_format) CHECK_ONCE(opt_transform_module) @@ -112,7 +111,7 @@ static const GOptionEntry optargs[] = { "Set loglevel (5 is most verbose)", NULL}, {"driver", 'd', 0, G_OPTION_ARG_CALLBACK, &check_opt_drv, "The driver to use", NULL}, - {"config", 'c', 0, G_OPTION_ARG_CALLBACK, &check_opt_config, + {"config", 'c', 0, G_OPTION_ARG_STRING_ARRAY, &opt_configs, "Specify device configuration options", NULL}, {"input-file", 'i', 0, G_OPTION_ARG_FILENAME_ARRAY, &input_file_array, "Load input from file", NULL},