- if((c = getopt_long(argc, argv, "ht:", long_options, &option_index)) == -1) { break; }
-
- switch(c) {
- case 0:
- if(long_options[option_index].flag != 0) { break; }
-
- fprintf(stderr, "option %s", long_options[option_index].name);
- if(optarg) {
- fprintf(stderr, " with arg %s", optarg);
- }
- fprintf(stderr, "\n");
- return -1;
-
- break;
- case 'h':
- usage();
- return -1;
- case 't':
- memset(&tm, 0, sizeof(tm));
-
- if(strptime(optarg, "%F %T %z", &tm) != NULL) {
- now = mktime(&tm);
- }
+ if ((c =
+ getopt_long(argc, argv, "ht:", long_options,
+ &option_index)) == -1) {
+ break;
+ }