From 5d24a0917e15506f9e9f53a2e19aa431bb90e660 Mon Sep 17 00:00:00 2001 From: "graham.gower" Date: Mon, 21 Dec 2009 03:49:34 +0000 Subject: [PATCH] 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 --- src/opkg-cl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) -- 2.25.1