BlinkenArea - GitList
Repositories
Blog
Wiki
permissioner
Code
Commits
Branches
Tags
Search
Tree:
8b1c35d
Branches
Tags
master
permissioner
permissionerc
src
permissionerc.cpp
finish binaries, add readme
Stefan Schuermans
commited
8b1c35d
at 2020-09-17 19:19:25
permissionerc.cpp
Blame
History
Raw
#include <permissioner/Config.h> #include <cstdlib> #include <iostream> #include <stdexcept> #include <string> int main(int argc, char const **argv) { if (argc != 2) { std::cerr << "usage: " << argv[0] << " <config file>" << std::endl; return EXIT_FAILURE; } std::string configFileName(argv[1]); try { Config config; config.parseFile(configFileName); config.setPermissions(); } catch (std::exception const &e) { std::cerr << "error: " << e.what() << std::endl; return EXIT_FAILURE; } return EXIT_SUCCESS; }