2020-08-03 01:06:55 +00:00
|
|
|
/*
|
2020-10-31 09:19:51 +00:00
|
|
|
* Copyright (c) 2020 Vsevolod Kremianskii
|
2020-08-03 01:06:55 +00:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2020-08-03 13:16:58 +00:00
|
|
|
#include <stdexcept>
|
2020-08-02 15:47:59 +00:00
|
|
|
|
2020-10-19 06:36:09 +00:00
|
|
|
#include "../src/system/log.h"
|
2020-10-10 08:00:01 +00:00
|
|
|
|
2020-08-03 13:16:58 +00:00
|
|
|
#include "program.h"
|
2020-08-02 15:47:59 +00:00
|
|
|
|
2020-09-25 14:04:02 +00:00
|
|
|
using namespace std;
|
|
|
|
|
2020-08-03 13:16:58 +00:00
|
|
|
using namespace reone;
|
2020-08-02 15:47:59 +00:00
|
|
|
|
2020-08-03 13:16:58 +00:00
|
|
|
int main(int argc, char **argv) {
|
|
|
|
try {
|
|
|
|
return tools::Program(argc, argv).run();
|
|
|
|
}
|
2020-09-25 14:04:02 +00:00
|
|
|
catch (const exception &ex) {
|
|
|
|
try {
|
|
|
|
error(ex.what());
|
|
|
|
}
|
|
|
|
catch (...) {
|
|
|
|
}
|
|
|
|
|
2020-08-03 13:16:58 +00:00
|
|
|
return 1;
|
2020-08-02 15:47:59 +00:00
|
|
|
}
|
|
|
|
}
|