47 cerr <<
"Exception has been thrown : " << e.what() <<
endl;
50 cerr <<
"An unknown exception has been thrown" <<
endl;
59 Path::Item prog_path{argv[0]};
define a list of standard exit codes for executables
provide functions to retrieve resources pointed by environment variables
Macro to silence unused variables warnings from the compiler.
Path::Item m_program_path
void setup(int argc, char **argv)
virtual ExitCode main()=0
const Path::Item & getProgramPath() const
ExitCode run(int argc, char **argv) noexcept
virtual void defineOptions()=0
Path::Item m_program_name
const Path::Item & getProgramName() const
Elements::ExitCode ExitCode
@ NOT_OK
Generic unknown failure.