Commit 2b74c5a7 authored by Patrik Huber's avatar Patrik Huber

Change return to EXIT_FAILURE on cmdline parsing error

parent a7c03275
...@@ -164,7 +164,7 @@ int main(int argc, char *argv[]) ...@@ -164,7 +164,7 @@ int main(int argc, char *argv[])
catch (const po::error& e) { catch (const po::error& e) {
cout << "Error while parsing command-line arguments: " << e.what() << endl; cout << "Error while parsing command-line arguments: " << e.what() << endl;
cout << "Use --help to display a list of options." << endl; cout << "Use --help to display a list of options." << endl;
return EXIT_SUCCESS; return EXIT_FAILURE;
} }
google::InitGoogleLogging(argv[0]); // Ceres logging initialisation google::InitGoogleLogging(argv[0]); // Ceres logging initialisation
......
...@@ -140,7 +140,7 @@ int main(int argc, char *argv[]) ...@@ -140,7 +140,7 @@ int main(int argc, char *argv[])
catch (const po::error& e) { catch (const po::error& e) {
cout << "Error while parsing command-line arguments: " << e.what() << endl; cout << "Error while parsing command-line arguments: " << e.what() << endl;
cout << "Use --help to display a list of options." << endl; cout << "Use --help to display a list of options." << endl;
return EXIT_SUCCESS; return EXIT_FAILURE;
} }
// Load the image, landmarks, LandmarkMapper and the Morphable Model: // Load the image, landmarks, LandmarkMapper and the Morphable Model:
......
...@@ -174,7 +174,7 @@ int main(int argc, char *argv[]) ...@@ -174,7 +174,7 @@ int main(int argc, char *argv[])
catch (const po::error& e) { catch (const po::error& e) {
cout << "Error while parsing command-line arguments: " << e.what() << endl; cout << "Error while parsing command-line arguments: " << e.what() << endl;
cout << "Use --help to display a list of options." << endl; cout << "Use --help to display a list of options." << endl;
return EXIT_SUCCESS; return EXIT_FAILURE;
} }
// Load the image, landmarks, LandmarkMapper and the Morphable Model: // Load the image, landmarks, LandmarkMapper and the Morphable Model:
......
...@@ -76,7 +76,7 @@ int main(int argc, char *argv[]) ...@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
catch (const po::error& e) { catch (const po::error& e) {
cout << "Error while parsing command-line arguments: " << e.what() << endl; cout << "Error while parsing command-line arguments: " << e.what() << endl;
cout << "Use --help to display a list of options." << endl; cout << "Use --help to display a list of options." << endl;
return EXIT_SUCCESS; return EXIT_FAILURE;
} }
morphablemodel::MorphableModel morphable_model = morphablemodel::load_model(model_file.string()); morphablemodel::MorphableModel morphable_model = morphablemodel::load_model(model_file.string());
......
...@@ -90,7 +90,7 @@ int main(int argc, char *argv[]) ...@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
catch (const po::error& e) { catch (const po::error& e) {
cout << "Error while parsing command-line arguments: " << e.what() << endl; cout << "Error while parsing command-line arguments: " << e.what() << endl;
cout << "Use --help to display a list of options." << endl; cout << "Use --help to display a list of options." << endl;
return EXIT_SUCCESS; return EXIT_FAILURE;
} }
morphablemodel::EdgeTopology edge_info; morphablemodel::EdgeTopology edge_info;
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include "eos/morphablemodel/MorphableModel.hpp" #include "eos/morphablemodel/MorphableModel.hpp"
#include "eos/morphablemodel/io/cvssp.hpp" #include "eos/morphablemodel/io/cvssp.hpp"
#include "opencv2/core/core.hpp"
#include "boost/program_options.hpp" #include "boost/program_options.hpp"
#include "boost/filesystem.hpp" #include "boost/filesystem.hpp"
...@@ -69,7 +67,7 @@ int main(int argc, char *argv[]) ...@@ -69,7 +67,7 @@ int main(int argc, char *argv[])
catch (const po::error& e) { catch (const po::error& e) {
cout << "Error while parsing command-line arguments: " << e.what() << endl; cout << "Error while parsing command-line arguments: " << e.what() << endl;
cout << "Use --help to display a list of options." << endl; cout << "Use --help to display a list of options." << endl;
return EXIT_SUCCESS; return EXIT_FAILURE;
} }
// Load the .scm Morphable Model and save it as cereal model: // Load the .scm Morphable Model and save it as cereal model:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment