From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QQdi9-0002em-36 for garchives@archives.gentoo.org; Sun, 29 May 2011 10:59:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F39C11C042; Sun, 29 May 2011 10:59:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C30291C042 for ; Sun, 29 May 2011 10:59:01 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5A90464223 for ; Sun, 29 May 2011 10:59:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 7D76D8050C for ; Sun, 29 May 2011 10:59:00 +0000 (UTC) From: "Christian Ruppert" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christian Ruppert" Message-ID: Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/eshowkw/__init__.py X-VCS-Directories: pym/gentoolkit/eshowkw/ X-VCS-Committer: idl0r X-VCS-Committer-Name: Christian Ruppert X-VCS-Revision: a87846fbb8d3f88d37d8c295021921a6e136145c Date: Sun, 29 May 2011 10:59:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: d0d6414447d7f15e020cef31d35bc907 commit: a87846fbb8d3f88d37d8c295021921a6e136145c Author: Christian Ruppert gentoo org> AuthorDate: Sun May 29 10:57:11 2011 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Sun May 29 10:57:11 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoolkit.gi= t;a=3Dcommit;h=3Da87846fb Allow only one arg for --arch/-a Allowing multiple args for -a/--arch causes some trouble (depending on th= e order) E.g. "eshowkw cat/pkg -a a b" would work while "eshowkw -a a cat/pkg" wou= ldn't because it would count cat/pkg to the -a/--arch option. eshowkw -a amd64 kdelibs No ebuilds at "/root" --- pym/gentoolkit/eshowkw/__init__.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/= __init__.py index e0544a9..86c59b7 100644 --- a/pym/gentoolkit/eshowkw/__init__.py +++ b/pym/gentoolkit/eshowkw/__init__.py @@ -56,7 +56,7 @@ def process_args(argv): =20 parser.add_argument('package', nargs=3D'*', default=3DNone, help=3D'Pac= kages to check.') =20 - parser.add_argument('-a', '--arch', nargs=3D'+', default=3D[], help=3D'= Display only specified arch(s)') + parser.add_argument('-a', '--arch', nargs=3D1, default=3D[], help=3D'Di= splay only specified arch(s)') =20 parser.add_argument('-A', '--align', nargs=3D'?', default=3D'bottom', c= hoices=3D['top', 'bottom'], help=3D'Specify alignment for descriptions.')