28 #include "core/version.hpp" 35 namespace autoconfig_server {
40 std::cout <<
"Usage:\n" << programName <<
" [-h] [-V] [-p prefix] [-p prefix] ... hub-face\n" 41 <<
" -h - print usage and exit\n" 42 <<
" -V - print version number and exit\n" 43 <<
" -p prefix - a local prefix of the HUB\n" 45 <<
" hub-face - a FaceUri to reach the HUB\n" 50 main(
int argc,
char** argv)
55 while ((opt = ::getopt(argc, argv,
"hVp:")) != -1) {
61 std::cout << NFD_VERSION_BUILD_STRING << std::endl;
72 if (argc != ::optind + 1) {
77 if (!options.
hubFaceUri.parse(argv[::optind])) {
78 std::cerr <<
"ERROR: cannot parse HUB FaceUri\n";
85 Program program(options, face, keyChain);
88 catch (
const std::exception& e) {
Copyright (c) 2014-2017, Regents of the University of California, Arizona Board of Regents...
std::string getExtendedErrorMessage(const E &exception)