repoman: use parse_known_args
authorZac Medico <zmedico@gentoo.org>
Sat, 3 Aug 2013 01:27:20 +0000 (18:27 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 3 Aug 2013 01:27:20 +0000 (18:27 -0700)
bin/repoman

index 638bd37007c33aebf04db628400a9d568a2d58eb..452ca488162a1fbb6e3b2c381cfcbe81be1bbb58 100755 (executable)
@@ -227,7 +227,7 @@ def ParseArgs(argv, qahelp):
                default_opts = portage.util.shlex_split(
                        repoman_settings.get("REPOMAN_DEFAULT_OPTS", ""))
                if default_opts:
-                       opts, args = parser.parse_args(default_opts + sys.argv[1:])
+                       opts, args = parser.parse_known_args(default_opts + sys.argv[1:])
 
        if opts.mode == 'help':
                parser.print_help(short=False)