Set the default verbosity before args_parse, where it wont override the args.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 21 Dec 2009 03:49:34 +0000 (03:49 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 21 Dec 2009 03:49:34 +0000 (03:49 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@508 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

src/opkg-cl.c

index 1f3a0ae878dd7e564372c01f7fd4cbd63b67c163..63ebf8cb6c01e57971b86a7ff9849372643ee8db 100644 (file)
@@ -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())