Mercurial > hg > orthanc-stone
comparison OrthancStone/Samples/Sdl/RtViewer/RtViewerSdl.cpp @ 1532:c7a37c3a0b8e
print help in sdl samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Aug 2020 15:00:52 +0200 |
parents | 31b0449a163a |
children | 301571299212 |
comparison
equal
deleted
inserted
replaced
1531:d3cafeef07bb | 1532:c7a37c3a0b8e |
---|---|
89 } | 89 } |
90 | 90 |
91 void RtViewerApp::ProcessOptions(int argc, char* argv[]) | 91 void RtViewerApp::ProcessOptions(int argc, char* argv[]) |
92 { | 92 { |
93 namespace po = boost::program_options; | 93 namespace po = boost::program_options; |
94 po::options_description desc("Usage:"); | 94 po::options_description desc("Usage"); |
95 | 95 |
96 desc.add_options() | 96 desc.add_options() |
97 ("loglevel", po::value<std::string>()->default_value("WARNING"), | 97 ("loglevel", po::value<std::string>()->default_value("WARNING"), |
98 "You can choose WARNING, INFO or TRACE for the logging level: Errors and warnings will always be displayed. (default: WARNING)") | 98 "You can choose WARNING, INFO or TRACE for the logging level: Errors and warnings will always be displayed. (default: WARNING)") |
99 | 99 |
107 "Orthanc ID of the RTDOSE instance to load. This may be an empty string.") | 107 "Orthanc ID of the RTDOSE instance to load. This may be an empty string.") |
108 | 108 |
109 ("rtstruct", po::value<std::string>()->default_value("54460695-ba3885ee-ddf61ac0-f028e31d-a6e474d9"), | 109 ("rtstruct", po::value<std::string>()->default_value("54460695-ba3885ee-ddf61ac0-f028e31d-a6e474d9"), |
110 "Orthanc ID of the RTSTRUCT instance to load. This may be an empty string.") | 110 "Orthanc ID of the RTSTRUCT instance to load. This may be an empty string.") |
111 ; | 111 ; |
112 | |
113 std::cout << desc << std::endl; | |
112 | 114 |
113 po::variables_map vm; | 115 po::variables_map vm; |
114 try | 116 try |
115 { | 117 { |
116 po::store(po::parse_command_line(argc, argv, desc), vm); | 118 po::store(po::parse_command_line(argc, argv, desc), vm); |