apk: set automatic flags before parsing the opts

Otherwise we cannot override with --no-progress
cute-signatures
Natanael Copa 2013-06-19 09:25:26 +00:00
parent adc5b0b161
commit 956bd5f032
1 changed files with 1 additions and 1 deletions

View File

@ -338,6 +338,7 @@ int main(int argc, char **argv)
} }
init_openssl(); init_openssl();
setup_automatic_flags();
optindex = 0; optindex = 0;
while ((r = getopt_long(argc, argv, short_options, while ((r = getopt_long(argc, argv, short_options,
@ -435,7 +436,6 @@ int main(int argc, char **argv)
break; break;
} }
} }
setup_automatic_flags();
if (applet == NULL) { if (applet == NULL) {
r = usage(NULL); r = usage(NULL);