X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=main.c;h=689c2d57496ba5b4506698165318a88459ea7e2e;hb=65f903f911c08beefb1573c54cbadf821f5ce1f3;hp=2bb2ef71bb13a95e877a276d346e0e8e41b11264;hpb=09fc39da486b8618d65b66ca96a760478c3e89e2;p=sigrok-cli.git diff --git a/main.c b/main.c index 2bb2ef7..689c2d5 100644 --- a/main.c +++ b/main.c @@ -138,7 +138,8 @@ static void get_option(void) if ((devargs = parse_generic_arg(opt_config, FALSE))) set_dev_options(sdi, devargs); - else devargs = NULL; + else + devargs = NULL; if ((ret = maybe_config_get(driver, sdi, cg, ci->key, &gvar)) != SR_OK) g_critical("Failed to get '%s': %s", opt_get, sr_strerror(ret)); @@ -214,8 +215,6 @@ int main(int argc, char **argv) } if (register_pds(opt_pds, opt_pd_annotations) != 0) goto done; - if (setup_pd_stack(opt_pds, opt_pd_stack, opt_pd_annotations) != 0) - goto done; /* Only one output type is ever shown. */ if (opt_pd_binary) { @@ -243,6 +242,8 @@ int main(int argc, char **argv) if (opt_version) show_version(); + else if (opt_list_supported) + show_supported(); else if (opt_input_format && opt_show) show_input(); else if (opt_output_format && opt_show)