summaryrefslogtreecommitdiff
path: root/console/console.cpp
blob: f86dfc227079a428aaedb19940ee1723dbffb45a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>

#include <rawaccel-io.hpp>

#include "parse.hpp"

namespace ra = rawaccel;

int main(int argc, char** argv) {
	try {
		ra::write(ra::parse(argc, argv));
	}
	catch (const std::system_error& e) {
		std::cerr << e.what() << " (" << e.code() << ")\n";
	}
	catch (const std::exception& e) {
		std::cerr << e.what() << '\n';
	}
}