X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fsort-test.c;h=448abdc31b517fe72e0b39e0c64898613b005a96;hb=9fbdf10b4915874aad2eb98087293e5c721d3eb2;hp=a41b296424be5e95cd386ca966aeb1c025129ff0;hpb=166ccebdf926fc2250a2eba963c13af12e9688c1;p=libucw.git diff --git a/lib/sort-test.c b/lib/sort-test.c index a41b2964..448abdc3 100644 --- a/lib/sort-test.c +++ b/lib/sort-test.c @@ -77,10 +77,12 @@ int main(int argc, char **argv) { log_init(NULL); - cf_read(DEFAULT_CONFIG); if (cf_getopt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) >= 0 || optind != argc - 2) - die("Usage: sort-test "); + { + fputs("This program supports only the following command-line arguments:\n" CF_USAGE, stderr); + exit(1); + } s_sort(argv[optind], argv[optind+1]); return 0;