Jlm
jlm-opt.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Nico Reißmann <nico.reissmann@gmail.com>
3  * See COPYING for terms of redistribution.
4  */
5 
7 
8 int
9 main(int argc, char ** argv)
10 {
11  auto & commandLineOptions = jlm::tooling::JlmOptCommandLineParser::Parse(argc, argv);
12 
13  try
14  {
15  jlm::tooling::JlmOptCommand command(argv[0], commandLineOptions);
16  command.Run();
17  }
18  catch (jlm::util::Error & e)
19  {
20  std::cerr << e.what();
21  exit(EXIT_FAILURE);
22  }
23 
24  return 0;
25 }
static const JlmOptCommandLineOptions & Parse(int argc, const char *const *argv)
void Run() const override
Definition: Command.cpp:346
int main(int argc, char **argv)
Definition: jlm-opt.cpp:9