author | Olivier Brunel
<jjk@jjacky.com> 2015-02-13 20:53:25 UTC |
committer | Olivier Brunel
<jjk@jjacky.com> 2015-04-04 12:47:33 UTC |
parent | fa5592e689581744eace38eb97cacc01789f1b53 |
src/anopa/aa-start.c | +9 | -8 |
diff --git a/src/anopa/aa-start.c b/src/anopa/aa-start.c index 4542f90..91d7e39 100644 --- a/src/anopa/aa-start.c +++ b/src/anopa/aa-start.c @@ -214,17 +214,17 @@ main (int argc, char * const argv[]) for (;;) { struct option longopts[] = { - { "help", no_argument, NULL, 'h' }, - { "version", no_argument, NULL, 'V' }, { "double-output", no_argument, NULL, 'D' }, - { "repodir", required_argument, NULL, 'r' }, + { "help", no_argument, NULL, 'h' }, { "listdir", required_argument, NULL, 'l' }, + { "repodir", required_argument, NULL, 'r' }, + { "version", no_argument, NULL, 'V' }, { "no-wants", no_argument, NULL, 'w' }, { NULL, 0, 0, 0 } }; int c; - c = getopt_long (argc, argv, "hVDr:l:w", longopts, NULL); + c = getopt_long (argc, argv, "Dhl:r:Vw", longopts, NULL); if (c == -1) break; switch (c) @@ -233,14 +233,14 @@ main (int argc, char * const argv[]) mode_both = 1; break; - case 'r': + case 'l': unslash (optarg); - path_repo = optarg; + path_list = optarg; break; - case 'l': + case 'r': unslash (optarg); - path_list = optarg; + path_repo = optarg; break; case 'w': @@ -250,6 +250,7 @@ main (int argc, char * const argv[]) case 'V': aa_die_version (); + case 'h': default: dieusage (); }