forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cxx
More file actions
31 lines (26 loc) · 671 Bytes
/
main.cxx
File metadata and controls
31 lines (26 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
///
/// @file main.cxx
/// @author Barthelemy von Haller
///
#include "ExampleModule1/Foo.h"
#include <boost/program_options.hpp>
#include <iostream>
namespace po = boost::program_options;
int main(int argc, char *argv[])
{
// Arguments parsing
po::variables_map vm;
po::options_description desc("Allowed options");
desc.add_options()("help,h", "Produce help message.");
po::store(parse_command_line(argc, argv, desc), vm);
po::notify(vm);
// help
if (vm.count("help")) {
std::cout << desc << std::endl;
return EXIT_SUCCESS;
}
// Actual "work"
AliceO2::Examples::ExampleModule1::Foo hello;
hello.greet();
return EXIT_SUCCESS;
}