From 5d24a0917e15506f9e9f53a2e19aa431bb90e660 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Sun, 20 Dec 2009 22:49:34 -0500 Subject: 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 --- (limited to 'src') 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()) -- cgit v0.9.1