int opt = 0;
int i = 0;
- while ((opt = getopt(argc, argv, "?"
+ while ((opt = getopt(argc, argv,
#ifdef BB_FEATURE_HUMAN_READABLE
"hm"
#endif
#else
case 'k': break;
#endif
- case '?': goto print_df_usage; break;
+ default:
+ show_usage();
}
}
}
return status;
-
-print_df_usage:
- show_usage();
- return(FALSE);
}
/*
int opt = 0;
int i = 0;
- while ((opt = getopt(argc, argv, "?"
+ while ((opt = getopt(argc, argv,
#ifdef BB_FEATURE_HUMAN_READABLE
"hm"
#endif
#else
case 'k': break;
#endif
- case '?': goto print_df_usage; break;
+ default:
+ show_usage();
}
}
}
return status;
-
-print_df_usage:
- show_usage();
- return(FALSE);
}
/*
#endif
/* do normal option parsing */
- while ((opt = getopt(argc, argv, "hne:f:")) > 0) {
+ while ((opt = getopt(argc, argv, "ne:f:")) > 0) {
switch (opt) {
- case 'h':
- show_usage();
- break;
case 'n':
be_quiet++;
break;
case 'f':
load_cmd_file(optarg);
break;
+ default:
+ show_usage();
}
}
#endif
/* do normal option parsing */
- while ((opt = getopt(argc, argv, "hne:f:")) > 0) {
+ while ((opt = getopt(argc, argv, "ne:f:")) > 0) {
switch (opt) {
- case 'h':
- show_usage();
- break;
case 'n':
be_quiet++;
break;
case 'f':
load_cmd_file(optarg);
break;
+ default:
+ show_usage();
}
}