X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fsort-test.c;h=c3a48c8c4c1f94ec56274ee06b28c994ae575502;hb=62eda8640605c19ecd817e274e75717022349732;hp=337c4fa2ddea0b365929dd705b7917a680749c7f;hpb=8bb1ac59032fc9850f721a0a430061a953372ce2;p=libucw.git diff --git a/lib/sort-test.c b/lib/sort-test.c index 337c4fa2..c3a48c8c 100644 --- a/lib/sort-test.c +++ b/lib/sort-test.c @@ -1,9 +1,10 @@ /* Test for sorting routines */ #include "lib/lib.h" -#include "lib/conf.h" +#include "lib/getopt.h" #include "lib/fastbuf.h" +#include #include #include @@ -79,7 +80,10 @@ main(int argc, char **argv) log_init(NULL); 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;