From f2e7036b45e67475cc2bebc533656d4f40ed0bbc Mon Sep 17 00:00:00 2001 From: Rashad Kanavath <rashad.kanavath.email.com> Date: Tue, 3 Apr 2018 16:19:46 +0200 Subject: [PATCH] WRG: return EXIT_FAILURE and not false --- .../CommandLine/src/otbApplicationLauncherCommandLine.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Wrappers/CommandLine/src/otbApplicationLauncherCommandLine.cxx b/Modules/Wrappers/CommandLine/src/otbApplicationLauncherCommandLine.cxx index 4c5bd8a93f..72f8b84d95 100644 --- a/Modules/Wrappers/CommandLine/src/otbApplicationLauncherCommandLine.cxx +++ b/Modules/Wrappers/CommandLine/src/otbApplicationLauncherCommandLine.cxx @@ -270,7 +270,7 @@ int main(int argc, char* argv[]) if (argc < 2) { ShowUsage(argv); - return false; + return EXIT_FAILURE; } std::vector<std::string> vexp; @@ -302,7 +302,7 @@ int main(int argc, char* argv[]) if (vexp.empty()) { ShowUsage(argv); - return false; + return EXIT_FAILURE; } bool success = launcher->Load(vexp) && launcher->ExecuteAndWriteOutput(); -- GitLab