X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=options.c;h=d69ed7381e21fbe9402deda2b3c2f48620d0a0da;hp=3ec4414ba8792abd84579a78ff3395861df033db;hb=56fc0d6dbca2d46ff2a79275ef6307c4e38bf6a1;hpb=9ed80f1d862aa90d47fde48e0e1e924d1ad5e4a3 diff --git a/options.c b/options.c index 3ec4414..d69ed73 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 ports", NULL}, {NULL, 0, 0, 0, NULL, NULL, NULL} };