From 4663aaaeb5977ac1a216aaf5f7ebb14d9fbaec04 Mon Sep 17 00:00:00 2001
From: Antoine Regimbeau <antoine.regimbeau@c-s.fr>
Date: Thu, 3 May 2018 11:37:26 +0200
Subject: [PATCH] DOC: add no default value info

---
 .../CommandLine/src/otbWrapperCommandLineLauncher.cxx     | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
index 0af9b9afc0..1f9820268a 100644
--- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
+++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
@@ -789,7 +789,13 @@ std::string CommandLineLauncher::DisplayParameterHelp(const Parameter::Pointer &
     
     if(m_Application->HasValue(paramKey))
       {
-      oss<<", default value is "<<m_Application->GetParameterAsString(paramKey);
+      if ( m_Application->GetParameterAsString(paramKey).empty() )
+        oss<<", no default value";
+      else
+        {
+        oss<<", default value is "
+           <<m_Application->GetParameterAsString(paramKey);
+        }
       }
     oss<<")";
     }
-- 
GitLab