Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pvtoolsSrc/pvget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ int MAIN (int argc, char *argv[])
outmode = pvd::PVStructure::Formatter::NT;
} else if(strcmp(optarg, "json")==0) {
outmode = pvd::PVStructure::Formatter::JSON;
} else if(strcmp(optarg, "json5")==0) {
outmode = pvd::PVStructure::Formatter::JSON5;
} else {
fprintf(stderr, "Unknown output mode '%s'\n", optarg);
outmode = pvd::PVStructure::Formatter::Raw;
Expand Down
14 changes: 7 additions & 7 deletions pvtoolsSrc/pvutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ namespace pva = epics::pvAccess;
"options:\n" \
" -h: Help: Print this message\n" \
" -V: Print version and exit\n" \
" -r <pv request>: Request, specifies what fields to return and options, default is '%s'\n" \
" -w <sec>: Wait time, specifies timeout, default is %f second(s)\n" \
" -p <provider>: Set default provider name, default is '%s'\n" \
" -M <raw|nt|json>: Output mode. default is 'nt'\n" \
" -v: Show entire structure (implies Raw mode)\n" \
" -q: Quiet mode, print only error messages\n" \
" -d: Enable debug output\n"
" -r <pv request>: Request, specifies what fields to return and options, default is '%s'\n" \
" -w <sec>: Wait time, specifies timeout, default is %f second(s)\n" \
" -p <provider>: Set default provider name, default is '%s'\n" \
" -M <raw|nt|json|json5>: Output mode. default is 'nt'\n" \
" -v: Show entire structure (implies Raw mode)\n" \
" -q: Quiet mode, print only error messages\n" \
" -d: Enable debug output\n"

extern double timeout;
extern bool debugFlag;
Expand Down