summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-20 22:49:34 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-20 22:49:34 (EST)
commit5d24a0917e15506f9e9f53a2e19aa431bb90e660 (patch)
tree4535d697aba88418783074057567c0c039ae8244
parentcdeb4ec7a68b9a9f240d19b525849c77118c0ff0 (diff)
Set the default verbosity before args_parse, where it wont override the args.
git-svn-id: http://opkg.googlecode.com/svn/trunk@508 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--src/opkg-cl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opkg-cl.c b/src/opkg-cl.c
index 1f3a0ae..63ebf8c 100644
--- a/src/opkg-cl.c
+++ b/src/opkg-cl.c
@@ -264,6 +264,8 @@ main(int argc, char *argv[])
int nocheckfordirorfile = 0;
int noreadfeedsfile = 0;
+ conf->verbosity = NOTICE;
+
opts = args_parse(argc, argv);
if (opts == argc || opts < 0) {
fprintf (stderr, "%s: unknown sub-command %s\n", argv[0],
@@ -299,7 +301,6 @@ main(int argc, char *argv[])
usage();
}
- conf->verbosity = NOTICE;
conf->pfm = cmd->pfm;
if (opkg_conf_init())