mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-10 12:28:09 -05:00
Initialized base repo
This commit is contained in:
21
tools/csv2bin/main.cpp
Normal file
21
tools/csv2bin/main.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#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
|
||||
}
|
||||
Reference in New Issue
Block a user