reone/tools/main.cpp

42 lines
1 KiB
C++
Raw Normal View History

2020-08-03 01:06:55 +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/>.
*/
#include <stdexcept>
2020-08-02 15:47:59 +00:00
#include "../src/common/log.h"
#include "program.h"
2020-08-02 15:47:59 +00:00
2020-09-25 14:04:02 +00:00
using namespace std;
using namespace reone;
2020-08-02 15:47:59 +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 (...) {
}
return 1;
2020-08-02 15:47:59 +00:00
}
}