aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-05-29 12:57:11 +0200
committerChristian Ruppert <idl0r@gentoo.org>2011-05-29 12:57:11 +0200
commita87846fbb8d3f88d37d8c295021921a6e136145c (patch)
tree422059f7921b95f13188e018fa4fb5e676c64e74
parentMerge branch 'gentoolkit' of git+ssh://overlays.gentoo.org/proj/gentoolkit in... (diff)
downloadgentoolkit-a87846fbb8d3f88d37d8c295021921a6e136145c.tar.gz
gentoolkit-a87846fbb8d3f88d37d8c295021921a6e136145c.tar.bz2
gentoolkit-a87846fbb8d3f88d37d8c295021921a6e136145c.zip
Allow only one arg for --arch/-a
Allowing multiple args for -a/--arch causes some trouble (depending on the order) E.g. "eshowkw cat/pkg -a a b" would work while "eshowkw -a a cat/pkg" wouldn't because it would count cat/pkg to the -a/--arch option. eshowkw -a amd64 kdelibs No ebuilds at "/root"
-rw-r--r--pym/gentoolkit/eshowkw/__init__.py2
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):
parser.add_argument('package', nargs='*', default=None, help='Packages to check.')
- parser.add_argument('-a', '--arch', nargs='+', default=[], help='Display only specified arch(s)')
+ parser.add_argument('-a', '--arch', nargs=1, default=[], help='Display only specified arch(s)')
parser.add_argument('-A', '--align', nargs='?', default='bottom', choices=['top', 'bottom'],
help='Specify alignment for descriptions.')