You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmkr/src/main.cpp

14 lines
359 B

4 years ago
#include "args.h"
4 years ago
4 years ago
#include <stdexcept>
#include <stdio.h>
#include <stdlib.h>
4 years ago
int main(int argc, char **argv) try {
auto output = cmkr::args::handle_args(argc, argv);
return fprintf(stdout, "%s\n", output) < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
4 years ago
} catch (const std::exception &e) {
4 years ago
(void)fprintf(stderr, "%s\n", e.what());
return EXIT_FAILURE;
}