From: Zac Medico Date: Sat, 3 Aug 2013 01:32:21 +0000 (-0700) Subject: xpak-helper.py: portage.util._argparse X-Git-Tag: v2.2.0_alpha192~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=80934d0c3631abfc2e4410fc68d8c12f8c6b1d02;p=portage.git xpak-helper.py: portage.util._argparse --- diff --git a/bin/xpak-helper.py b/bin/xpak-helper.py index 7a3865c10..d9d325d59 100755 --- a/bin/xpak-helper.py +++ b/bin/xpak-helper.py @@ -2,11 +2,11 @@ # Copyright 2009-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -import optparse import sys import portage portage._internal_caller = True from portage import os +from portage.util._argparse import ArgumentParser def command_recompose(args): @@ -46,8 +46,8 @@ def main(argv): usage = "usage: %s COMMAND [args]" % \ os.path.basename(argv[0]) - parser = optparse.OptionParser(description=description, usage=usage) - options, args = parser.parse_args(argv[1:]) + parser = ArgumentParser(description=description, usage=usage) + options, args = parser.parse_known_args(argv[1:]) if not args: parser.error("missing command argument")