28 #include "core/version.hpp" 37 main(
int argc,
char** argv)
39 std::vector<std::string> args(argv + 1, argv + argc);
44 if (args.empty() || args[0] ==
"-h") {
49 if (args[0] ==
"-V") {
50 std::cout << NFD_VERSION_BUILD_STRING << std::endl;
54 std::string noun, verb;
60 catch (
const std::invalid_argument& e) {
61 std::cerr << e.what() << std::endl;
68 Controller controller(face, keyChain);
69 ExecuteContext ctx{noun, verb, ca, 0, std::cout, std::cerr, face, keyChain, controller};
73 catch (
const std::exception& e) {
74 std::cerr << e.what() << std::endl;
84 main(
int argc,
char** argv)
context for command execution
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...