{"template", required_argument, 0, 't'},
{"cache", optional_argument, 0, 'c'},
{"nocache", no_argument , 0, 'n'},
- {"daemon", required_argument, 0, 's'},
+ {"daemon", required_argument, 0, 'd'},
{0, 0, 0, 0}
};
int option_index = 0;
opterr = 0; /* initialize getopt */
while (1) {
- opt = getopt_long(argc, argv, "t:", long_options, &option_index);
+ opt = getopt_long(argc, argv, "t:cnd:", long_options, &option_index);
if (opt == EOF)
break;
force_cache = -1;
break;
- case 's':
+ case 'd':
if (daemon_address != NULL)
free (daemon_address);
daemon_address = strdup (optarg);