62 "Usage: " <<
program_name <<
" [-d] [-h]" << std::endl <<
63 " -d enable debugging." << std::endl <<
64 " -h this message" << std::endl << std::endl;
73 while (-1 != (opt =
getopt(argc, argv,
"hd"))) {
82 std::cerr <<
program_name <<
": FATAL: unknown option: -" <<
83 static_cast<char>(
optopt) <<
". Exiting" << std::endl;
91main(
int argc,
char *argv[])
99 while (getline(std::cin,buf)) {
100 ndebug(
"Got " << buf.length() <<
" bytes '" << buf <<
"' from Squid");
106 " shutting down...");
int main(int argc, char *argv[])
static void process_options(int argc, char *argv[])
int getopt(int nargc, char *const *nargv, const char *ostr)