]> sigrok.org Git - sigrok-cli.git/blobdiff - main.c
show: print list of available serial ports
[sigrok-cli.git] / main.c
diff --git a/main.c b/main.c
index 701da8e1992a66d69fac8f2e8316a0196c1e6c4d..829492f5704aa8b3b0f4d5f2a1c48a1d4b61709a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -268,6 +268,8 @@ int main(int argc, char **argv)
                show_supported();
        else if (opt_list_supported_wiki)
                show_supported_wiki();
+       else if (opt_input_file && opt_show)
+               load_input_file(TRUE);
        else if (opt_input_format && opt_show)
                show_input();
        else if (opt_output_format && opt_show)
@@ -283,13 +285,15 @@ int main(int argc, char **argv)
        else if (opt_show)
                show_dev_detail();
        else if (opt_input_file)
-               load_input_file();
+               load_input_file(FALSE);
        else if (opt_get)
                get_option();
        else if (opt_set)
                set_options();
        else if (opt_samples || opt_time || opt_frames || opt_continuous)
                run_session();
+       else if (opt_list_serial)
+               show_serial_ports();
        else
                show_help();