mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-22 10:15:22 -05:00
22 lines
598 B
C++
22 lines
598 B
C++
#include "Options.h"
|
|
|
|
int main(int argc, char ** argv) {
|
|
#ifdef NDEBUG
|
|
try {
|
|
#endif
|
|
return Options(argc, argv).main();
|
|
#ifdef NDEBUG
|
|
} catch (std::bad_alloc const &e ) {
|
|
std::cerr << "csv2bin fatal error: bad alloc: " << e.what() << std::endl;
|
|
return 1;
|
|
} catch (argument_error const &e ) {
|
|
Options::short_usage(std::cerr);
|
|
std::cerr << "csv2bin argument error: " << e.what() << std::endl;
|
|
return 1;
|
|
} catch (std::exception const &e) {
|
|
std::cerr << "csv2bin error: " << e.what() << std::endl;
|
|
return 1;
|
|
}
|
|
#endif
|
|
}
|