Print a notice in the --help view in debug builds.

This commit is contained in:
King_DuckZ 2015-10-01 15:37:09 +02:00
parent 41b0f59039
commit c31d317d51

View file

@ -72,6 +72,12 @@ namespace duck {
po::notify(parVarMap); po::notify(parVarMap);
if (parVarMap.count("help")) { if (parVarMap.count("help")) {
#if !defined(NDEBUG)
std::cout << "*******************\n";
std::cout << "*** DEBUG BUILD ***\n";
std::cout << "*******************\n";
std::cout << '\n';
#endif
po::options_description visible("Available options"); po::options_description visible("Available options");
visible.add(desc).add(query_options); visible.add(desc).add(query_options);
std::cout << PROGRAM_NAME << " Copyright (C) 2015 Michele Santullo\n"; std::cout << PROGRAM_NAME << " Copyright (C) 2015 Michele Santullo\n";