]> mj.ucw.cz Git - libucw.git/blobdiff - lib/sort-test.c
Removed xprintf() -- it was very ugly and its only raison d'etre was
[libucw.git] / lib / sort-test.c
index 002e93138a3e6be66638ebab52919a8e415e6fa8..448abdc31b517fe72e0b39e0c64898613b005a96 100644 (file)
@@ -77,11 +77,12 @@ int
 main(int argc, char **argv)
 {
   log_init(NULL);
 main(int argc, char **argv)
 {
   log_init(NULL);
-  cf_default_init(DEFAULT_CONFIG);
   if (cf_getopt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) >= 0 ||
       optind != argc - 2)
   if (cf_getopt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) >= 0 ||
       optind != argc - 2)
-    die("Usage: sort-test <input> <output>");
-  cf_default_done();
+  {
+    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;
 
   s_sort(argv[optind], argv[optind+1]);
   return 0;