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);
help(void)
{
fprintf(stderr, "\
-Usage: buckettool <command>\n\
+Usage: buckettool [<options>] <command>\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 <obj>\tdelete bucket\n\
log_init(NULL);
if (cf_getopt(argc, argv, CF_SHORT_OPTS, CF_NO_LONG_OPTS, NULL) >= 0 ||
optind != argc - 2)
- die("Usage: sort-test <input> <output>");
+ die("Usage: sort-test [<options>] <input> <output>\nOptions:\n" CF_USAGE);
s_sort(argv[optind], argv[optind+1]);
return 0;