Hi, when passing multiple options with the same name to sigrok-cli, only the last one in the option string has any effect.
For example: sigrok-cli --driver=baylibre-acme --config probe_power=1=off:probe_power=3=off --set only powers off the third probe. The reason for this is using a GHashTable in parse_generic_arg() - when a key already exists in the hashtable, the corresponding value gets overwritten. Is this an intentional behavior? I don't see any hashtable look-ups after any call to parse_generic_arg(). Is there any reason why it couldn't be changed to a GSList of option structures to allow duplicate keys? Best regards, Bartosz Golaszewski ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel