Files

19 lines
386 B
C++
Raw Permalink Normal View History

#include "options.hpp"
#include <iostream>
int main(int argc, const char** argv)
{
try {
std::unique_ptr<Case> executable = parse_options(argc, argv);
if (!executable) {
return 1;
}
return executable->execute();
} catch (const std::exception& e) {
std::cerr << "Error: " << e.what() << std::endl;
return 1;
}
}