22 lines
436 B
C++
22 lines
436 B
C++
#include "app.h"
|
|
#include "args.h"
|
|
|
|
#ifdef _WIN32
|
|
#define popen _popen
|
|
#define pclose _pclose
|
|
#endif
|
|
|
|
int main(const int argc, char** argv) {
|
|
Options options = parse(argc, argv);
|
|
Application app(options);
|
|
app.assemble();
|
|
if (options.graphFilename.has_value()) {
|
|
app.save_graph(options.graphFilename.value());
|
|
spdlog::get("app")->info("Exiting..");
|
|
return 0;
|
|
}
|
|
|
|
app.run();
|
|
return 0;
|
|
}
|