X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=options.c;h=5a6f9487769f640bd4e04a71c61832bcf6f0191e;hb=e8a9eb8d33617a5210a1c10d1855a8482bd85080;hp=3ec4414ba8792abd84579a78ff3395861df033db;hpb=b20ea789170c7bb52c54b23c0167992bceb9a330;p=sigrok-cli.git diff --git a/options.c b/options.c index 3ec4414..5a6f948 100644 --- a/options.c +++ b/options.c @@ -52,6 +52,7 @@ gchar *opt_frames = NULL; gboolean opt_continuous = FALSE; gchar *opt_get = NULL; gboolean opt_set = FALSE; +gboolean opt_list_serial = FALSE; /* * Defines a callback function that generates an error if an @@ -158,6 +159,7 @@ static const GOptionEntry optargs[] = { "Sample continuously", NULL}, {"get", 0, 0, G_OPTION_ARG_CALLBACK, &check_opt_get, "Get device options only", NULL}, {"set", 0, 0, G_OPTION_ARG_NONE, &opt_set, "Set device options only", NULL}, + {"list-serial", 0, 0, G_OPTION_ARG_NONE, &opt_list_serial, "List available serial/HID/BT/BLE ports", NULL}, {NULL, 0, 0, 0, NULL, NULL, NULL} };