summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-19 09:25:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-19 10:00:31 +0000
commit956bd5f0327551b35399e431e01849e7479ee2f7 (patch)
tree32c761183270766023dc8e0c437e0bc53a657ee7 /src/apk.c
parentadc5b0b16127049307283b9b59d7f0705ba8adc2 (diff)
downloadapk-tools-956bd5f0327551b35399e431e01849e7479ee2f7.tar.gz
apk-tools-956bd5f0327551b35399e431e01849e7479ee2f7.tar.bz2
apk-tools-956bd5f0327551b35399e431e01849e7479ee2f7.tar.xz
apk-tools-956bd5f0327551b35399e431e01849e7479ee2f7.zip
apk: set automatic flags before parsing the opts
Otherwise we cannot override with --no-progress
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apk.c b/src/apk.c
index cb039d1..7739079 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -338,6 +338,7 @@ int main(int argc, char **argv)
}
init_openssl();
+ setup_automatic_flags();
optindex = 0;
while ((r = getopt_long(argc, argv, short_options,
@@ -435,7 +436,6 @@ int main(int argc, char **argv)
break;
}
}
- setup_automatic_flags();
if (applet == NULL) {
r = usage(NULL);