Set the default verbosity before args_parse, where it wont override the args.
[oweals/opkg-lede.git] / 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())