Renamed --output_dir option to --output-dir
[ppastats.git] / src / main.c
index 1629053..75116e2 100644 (file)
@@ -86,7 +86,7 @@ static void display_published_binaries(const char *owner,
 static struct option long_options[] = {
        {"version", no_argument, 0, 'v'},
        {"help", no_argument, 0, 'h'},
-       {"html", required_argument, 0, 't'},
+       {"output-dir", required_argument, 0, 'o'},
        {"debug", no_argument, 0, 'd'},
        {"status", required_argument, 0, 's'},
        {0, 0, 0, 0}
@@ -122,8 +122,13 @@ static void print_help()
        puts("");
 
        puts("\
-  -t, --html       \
-generates an HTML output.");
+  -o, --output-dir=[PATH]       \
+generates HTML pages into 'PATH'.");
+
+       puts("\
+  -s, --status=[STATUS]                retrieves only package of the given status\n\
+                               (possible values are: Pending, Published, \n\
+                               Superseded, Deleted or Obsolete).");
 
        puts("");
 
@@ -144,10 +149,10 @@ int main(int argc, char **argv)
 
        program_name = argv[0];
 
-       while ((optc = getopt_long(argc, argv, "vht:ds:", long_options,
+       while ((optc = getopt_long(argc, argv, "vho:ds:", long_options,
                                   NULL)) != -1) {
                switch (optc) {
-               case 't':
+               case 'o':
                        output_html = 1;
                        output_dir = strdup(optarg);
                        break;