28#include <boost/program_options.hpp>
37using boost::program_options::value;
69 log.info(
"This Works");
74 cout <<
"This Works too!" << endl;
76 if (args.count(
"input-files") > 0) {
78 for (
string file : files) {
79 cout <<
"Input file " << file << endl;
87 auto add = desc.add_options();
92 pos_desc.add(
"input-files", -1);
Macro to silence unused variables warnings from the compiler.
Example of an Elements program.
ExitCode mainMethod(ELEMENTS_UNUSED map< string, VariableValue > &args) override
The "main" method.
std::pair< OptionsDescription, PositionalOptionsDescription > defineProgramArguments() override
This methods must be used to the program arguments.
Simple example of an Elements program.
static Logging getLogger(const std::string &name="")
options_description OptionsDescription
positional_options_description PositionalOptionsDescription
ExitCode
Strongly typed exit numbers.
#define MAIN_FOR(ELEMENTS_PROGRAM_NAME)