Mercurial > hg > orthanc-stone
comparison Applications/Generic/NativeStoneApplicationRunner.cpp @ 658:63982c8c294a
merge am-dev -> default
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 14 May 2019 18:39:50 +0200 |
parents | 86dfde451f4c 9e3bb8b4f726 |
children | 68b5688241d5 |
comparison
equal
deleted
inserted
replaced
656:002d9562c8f5 | 658:63982c8c294a |
---|---|
104 | 104 |
105 try | 105 try |
106 { | 106 { |
107 boost::program_options::store( | 107 boost::program_options::store( |
108 boost::program_options::command_line_parser(argc, argv). | 108 boost::program_options::command_line_parser(argc, argv). |
109 options(options).run(), parameters); | 109 options(options).allow_unregistered().run(), parameters); |
110 boost::program_options::notify(parameters); | 110 boost::program_options::notify(parameters); |
111 } | 111 } |
112 catch (boost::program_options::error& e) | 112 catch (boost::program_options::error& e) |
113 { | 113 { |
114 LOG(ERROR) << | 114 LOG(ERROR) << |
122 ******************************************************************/ | 122 ******************************************************************/ |
123 | 123 |
124 if (error || parameters.count("help")) | 124 if (error || parameters.count("help")) |
125 { | 125 { |
126 std::cout << std::endl | 126 std::cout << std::endl |
127 << "Usage: " << argv[0] << " [OPTION]..." << std::endl | |
128 << "Orthanc, lightweight, RESTful DICOM server for healthcare " | |
129 << "and medical research." << std::endl << std::endl | |
130 << "Demonstration application of Orthanc Stone in native " | |
131 << "environment." << std::endl; | |
132 | 127 |
133 std::cout << options << "\n"; | 128 std::cout << options << "\n"; |
134 return error ? -1 : 0; | 129 return error ? -1 : 0; |
135 } | 130 } |
136 | 131 |