ewmscp  ..
version.cpp
Go to the documentation of this file.
1 #include "Options.h"
2 #include "git-rev.h"
3 
4 
6 [](options::single<bool>& /*me*/) {
8  << " " << EWMSCP_VERSION << " with " << EWMSCP_EXTRAS
9  << " c++ " << __VERSION__ << " at " << __DATE__ << " " << __TIME__ << "\n";
10  std::cout << "https://gitlab.desy.de/ewmscp/ewmscp/-/commit/" << EWMSCP_COMMIT << "\n";
11  std::cout << "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\n";
12  std::cout << "This is free software: you are free to change and redistribute it.\n";
13  std::cout << "There is NO WARRANTY, to the extent permitted by law.\n";
14  std::cout << "\nWritten by Juergen Hannappel.\n";
15  exit(EXIT_SUCCESS);
16 },
17 'V', "version", "print version and exit sucessfully");
options::single< bool >
class specialisation for options of type bool
Definition: Options.h:595
Options.h
versionOption
static options::withAction< options::single< bool > > versionOption([](options::single< bool > &) { std::cout<< options::parser::fGetInstance() ->fGetProgName()<< " "<< EWMSCP_VERSION<< " with "<< EWMSCP_EXTRAS<< " c++ "<< __VERSION__<< " at "<< __DATE__<< " "<< __TIME__<< "\n";std::cout<< "https://gitlab.desy.de/ewmscp/ewmscp/-/commit/"<< EWMSCP_COMMIT<< "\n";std::cout<< "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\n";std::cout<< "This is free software: you are free to change and redistribute it.\n";std::cout<< "There is NO WARRANTY, to the extent permitted by law.\n";std::cout<< "\nWritten by Juergen Hannappel.\n";exit(EXIT_SUCCESS);}, 'V', "version", "print version and exit sucessfully")
options::parser::fGetProgName
const std::string & fGetProgName() const
Definition: Options.h:436
options::parser::fGetInstance
static parser * fGetInstance()
get the only allwed instance of the option parser.
Definition: Options.cpp:144
options::withAction
Definition: Options.h:887