changeset 1532:c7a37c3a0b8e

print help in sdl samples
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Aug 2020 15:00:52 +0200
parents d3cafeef07bb
children 82279abb92d0
files OrthancStone/Samples/Sdl/RtViewer/RtViewerSdl.cpp OrthancStone/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancStone/Samples/Sdl/RtViewer/RtViewerSdl.cpp	Thu Aug 06 18:32:09 2020 +0200
+++ b/OrthancStone/Samples/Sdl/RtViewer/RtViewerSdl.cpp	Fri Aug 07 15:00:52 2020 +0200
@@ -91,7 +91,7 @@
   void RtViewerApp::ProcessOptions(int argc, char* argv[])
   {
     namespace po = boost::program_options;
-    po::options_description desc("Usage:");
+    po::options_description desc("Usage");
 
     desc.add_options()
       ("loglevel", po::value<std::string>()->default_value("WARNING"),
@@ -110,6 +110,8 @@
        "Orthanc ID of the RTSTRUCT instance to load. This may be an empty string.")
       ;
 
+    std::cout << desc << std::endl;
+
     po::variables_map vm;
     try
     {
--- a/OrthancStone/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp	Thu Aug 06 18:32:09 2020 +0200
+++ b/OrthancStone/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp	Fri Aug 07 15:00:52 2020 +0200
@@ -46,7 +46,7 @@
 static void ProcessOptions(int argc, char* argv[])
 {
   namespace po = boost::program_options;
-  po::options_description desc("Usage:");
+  po::options_description desc("Usage");
 
   desc.add_options()
     ("loglevel", po::value<std::string>()->default_value("WARNING"),
@@ -62,6 +62,8 @@
      "The zero-based index of the frame (for multi-frame instances)")
     ;
 
+  std::cout << desc << std::endl;
+
   po::variables_map vm;
   try
   {