diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx index b5ef08d6acaf9814579046f6a50a0db917dac063..bc7ea48cedf3ce0eec05f480a5161fcdb0d0bd86 100644 --- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx +++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx @@ -282,6 +282,11 @@ bool CommandLineLauncher::BeforeExecute() return false; } + if (m_Application->IsDeprecated()) + { + m_Application->GetLogger()->Warning("This application is deprecated and will be removed in a future OTB release.\n"); + } + return true; } @@ -584,6 +589,12 @@ void CommandLineLauncher::DisplayHelp(bool longHelp) std::cerr<<std::endl; std::cerr << "This is the "<<m_Application->GetDocName() << " ("<<m_Application->GetName()<<") application, version " << OTB_VERSION_STRING <<std::endl<<std::endl; + if (m_Application->IsDeprecated()) + { + std::cerr << "WARNING: This application is deprecated, it will be removed in a future OTB release." << std::endl; + std::cerr << std::endl; + } + std::cerr << m_Application->GetDescription() << std::endl; if(longHelp)