From: graham.gower Date: Mon, 21 Dec 2009 03:49:34 +0000 (+0000) Subject: Set the default verbosity before args_parse, where it wont override the args. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5d24a0917e15506f9e9f53a2e19aa431bb90e660;p=project%2Fopkg-lede.git 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 --- 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())