File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,8 @@ int MAIN (int argc, char *argv[])
309
309
outmode = pvd::PVStructure::Formatter::NT;
310
310
} else if (strcmp (optarg, " json" )==0 ) {
311
311
outmode = pvd::PVStructure::Formatter::JSON;
312
+ } else if (strcmp (optarg, " json5" )==0 ) {
313
+ outmode = pvd::PVStructure::Formatter::JSON5;
312
314
} else {
313
315
fprintf (stderr, " Unknown output mode '%s'\n " , optarg);
314
316
outmode = pvd::PVStructure::Formatter::Raw;
Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ namespace pva = epics::pvAccess;
26
26
" options:\n " \
27
27
" -h: Help: Print this message\n " \
28
28
" -V: Print version and exit\n " \
29
- " -r <pv request>: Request, specifies what fields to return and options, default is '%s'\n " \
30
- " -w <sec>: Wait time, specifies timeout, default is %f second(s)\n " \
31
- " -p <provider>: Set default provider name, default is '%s'\n " \
32
- " -M <raw|nt|json>: Output mode. default is 'nt'\n " \
33
- " -v: Show entire structure (implies Raw mode)\n " \
34
- " -q: Quiet mode, print only error messages\n " \
35
- " -d: Enable debug output\n "
29
+ " -r <pv request>: Request, specifies what fields to return and options, default is '%s'\n " \
30
+ " -w <sec>: Wait time, specifies timeout, default is %f second(s)\n " \
31
+ " -p <provider>: Set default provider name, default is '%s'\n " \
32
+ " -M <raw|nt|json|json5>: Output mode. default is 'nt'\n " \
33
+ " -v: Show entire structure (implies Raw mode)\n " \
34
+ " -q: Quiet mode, print only error messages\n " \
35
+ " -d: Enable debug output\n "
36
36
37
37
extern double timeout;
38
38
extern bool debugFlag;
You can’t perform that action at this time.
0 commit comments