X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=options.c;h=ebd620d597b37417dcd65338da4b7202b274dc16;hb=cfad6a304754649dbd8841af8a15ddba16a69cc6;hp=d69ed7381e21fbe9402deda2b3c2f48620d0a0da;hpb=56fc0d6dbca2d46ff2a79275ef6307c4e38bf6a1;p=sigrok-cli.git diff --git a/options.c b/options.c index d69ed73..ebd620d 100644 --- a/options.c +++ b/options.c @@ -41,6 +41,7 @@ gchar *opt_pd_annotations = NULL; gchar *opt_pd_meta = NULL; gchar *opt_pd_binary = NULL; gboolean opt_pd_samplenum = FALSE; +gboolean opt_pd_jsontrace = FALSE; #endif gchar *opt_input_format = NULL; gchar *opt_output_format = NULL; @@ -142,6 +143,8 @@ static const GOptionEntry optargs[] = { "Protocol decoder binary output to show", NULL}, {"protocol-decoder-samplenum", 0, 0, G_OPTION_ARG_NONE, &opt_pd_samplenum, "Show sample numbers in decoder output", NULL}, + {"protocol-decoder-jsontrace", 0, 0, G_OPTION_ARG_NONE, &opt_pd_jsontrace, + "Output in Google Trace Event format (JSON)", NULL}, #endif {"scan", 0, 0, G_OPTION_ARG_NONE, &opt_scan_devs, "Scan for devices", NULL}, @@ -159,7 +162,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}, + {"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} };