Add message with usage template
authorTomas Mlcoch <tmlcoch@redhat.com>
Wed, 14 Mar 2012 08:02:57 +0000 (09:02 +0100)
committerTomas Mlcoch <tmlcoch@redhat.com>
Wed, 14 Mar 2012 08:02:57 +0000 (09:02 +0100)
src/createrepo_c.c

index 41e0617..2ec5a7d 100644 (file)
@@ -560,6 +560,7 @@ int main(int argc, char **argv) {
         exit(0);
     } else if (argc != 2) {
         fprintf(stderr, "Must specify exactly one directory to index.\n");
+        fprintf(stderr, "Usage: %s [options] <directory_to_index>\n\n", get_filename(argv[0]));
         free_options(&cmd_options);
         exit(1);
     }