From: Zac Medico Date: Wed, 20 Mar 2013 03:30:32 +0000 (-0700) Subject: portageq: fix envvar -v, bug #462412 X-Git-Tag: v2.2.0_alpha168 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d77dbe6ff72924e1934df63bf774e1c69b6e3b61;p=portage.git portageq: fix envvar -v, bug #462412 --- diff --git a/bin/portageq b/bin/portageq index b3c872dea..c88ee8804 100755 --- a/bin/portageq +++ b/bin/portageq @@ -1156,6 +1156,10 @@ def main(argv): portage.output.nocolor() parser = optparse.OptionParser(add_help_option=False) + + # used by envvar + parser.add_option("-v", dest="verbose", action="store_true") + actions = optparse.OptionGroup(parser, 'Actions') actions.add_option("-h", "--help", action="store_true") actions.add_option("--version", action="store_true") @@ -1210,6 +1214,10 @@ def main(argv): if cmd is None: return pquery(parser, pquery_option_groups, opts, args) + if opts.verbose: + # used by envvar + args.append("-v") + argv = argv[:1] + args if len(argv) < 2: