X-Git-Url: http://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=options.c;fp=options.c;h=ebd620d597b37417dcd65338da4b7202b274dc16;hp=5a6f9487769f640bd4e04a71c61832bcf6f0191e;hb=54614916a903af4afc2582db793eb306e39ddd0a;hpb=69110b5cbe99a54937f108d239592e5afb55d008 diff --git a/options.c b/options.c index 5a6f948..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},