From 80934d0c3631abfc2e4410fc68d8c12f8c6b1d02 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 2 Aug 2013 18:32:21 -0700 Subject: [PATCH] xpak-helper.py: portage.util._argparse --- bin/xpak-helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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") -- 2.26.2