Files
bed/src/main.cc
T
syedm 3e3fb6c39d Major updates
- Improve ruby block detection heuristics
- Add block information storage and block aware movements.
- Other minor fixes
2026-08-21 18:34:22 +01:00

22 lines
421 B
C++

#include "bed.h"
#include "pch.h"
int main(int argc, char *argv[]) {
std::vector<std::string> args(argv, argv + argc);
try {
bed::BEd ed(args);
ed.run();
} catch (bed::fatal_error &e) {
if (e.code)
std::cout << "Fatal error: " << e.what() << std::endl;
return e.code;
}
#ifndef DEBUG
catch (...) {
std::cout << "Unexpected error." << std::endl;
return 1;
}
#endif
return 0;
}