From: Robert Spalek Date: Wed, 26 Sep 2001 13:56:29 +0000 (+0000) Subject: CF_USAGE printed (description of -S and -C parameters) X-Git-Tag: holmes-import~1471 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=8ededf391ba2f87b4b3096ac3549765fd7de0732;p=libucw.git CF_USAGE printed (description of -S and -C parameters) --- diff --git a/lib/bucket.c b/lib/bucket.c index e073e6df..38d552e0 100644 --- a/lib/bucket.c +++ b/lib/bucket.c @@ -428,7 +428,7 @@ int main(int argc, char **argv) log_init(NULL); if (cf_getopt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) >= 0 || optind < argc) - die("This program has no command-line arguments."); + die("This program supports only the following command-line arguments:\n" CF_USAGE); unlink(obuck_name); obuck_init(1); diff --git a/lib/buckettool.c b/lib/buckettool.c index 42754309..488074e2 100644 --- a/lib/buckettool.c +++ b/lib/buckettool.c @@ -22,9 +22,11 @@ static void help(void) { fprintf(stderr, "\ -Usage: buckettool \n\ +Usage: buckettool [] \n\ \n\ -Commands:\n\ +Options:\n" +CF_USAGE +"\nCommands:\n\ -l\t\tlist all buckets\n\ -L\t\tlist all buckets including deleted ones\n\ -d \tdelete bucket\n\ diff --git a/lib/sort-test.c b/lib/sort-test.c index 337c4fa2..9d322777 100644 --- a/lib/sort-test.c +++ b/lib/sort-test.c @@ -79,7 +79,7 @@ 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 "); + die("Usage: sort-test [] \nOptions:\n" CF_USAGE); s_sort(argv[optind], argv[optind+1]); return 0;