Skip to content

Commit fdcc1a8

Browse files
authored
Merge e5961df into dafb6aa
2 parents dafb6aa + e5961df commit fdcc1a8

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

pvtoolsSrc/pvget.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ int MAIN (int argc, char *argv[])
309309
outmode = pvd::PVStructure::Formatter::NT;
310310
} else if(strcmp(optarg, "json")==0) {
311311
outmode = pvd::PVStructure::Formatter::JSON;
312+
} else if(strcmp(optarg, "json5")==0) {
313+
outmode = pvd::PVStructure::Formatter::JSON5;
312314
} else {
313315
fprintf(stderr, "Unknown output mode '%s'\n", optarg);
314316
outmode = pvd::PVStructure::Formatter::Raw;

pvtoolsSrc/pvutils.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ namespace pva = epics::pvAccess;
2626
"options:\n" \
2727
" -h: Help: Print this message\n" \
2828
" -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"
3636

3737
extern double timeout;
3838
extern bool debugFlag;

0 commit comments

Comments
 (0)