32 #include <boost/exception/diagnostic_information.hpp> 36 namespace autoconfig_server {
41 std::cout <<
"Usage: " << programName <<
" [-h] [-V] [-p prefix]... <hub-face>\n" 44 <<
" -h - print usage and exit\n" 45 <<
" -V - print version number and exit\n" 46 <<
" -p prefix - a local prefix of the hub\n" 47 <<
" hub-face - a FaceUri to reach the hub\n";
51 main(
int argc,
char** argv)
56 while ((opt = ::getopt(argc, argv,
"hVp:")) != -1) {
73 if (argc != ::optind + 1) {
78 if (!options.
hubFaceUri.parse(argv[::optind])) {
79 std::cerr <<
"ERROR: cannot parse hub FaceUri" << std::endl;
86 Program program(options, face, keyChain);
89 catch (
const std::exception& e) {
90 std::cerr <<
"ERROR: " << boost::diagnostic_information(e);
Copyright (c) 2014-2017, Regents of the University of California, Arizona Board of Regents...
const char NFD_VERSION_BUILD_STRING[]
NFD version string, including git commit information, if NFD is build from specific git commit...