projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9bd257
)
Allow only one arg for --arch/-a
author
Christian Ruppert
<idl0r@gentoo.org>
Sun, 29 May 2011 10:57:11 +0000
(12:57 +0200)
committer
Christian Ruppert
<idl0r@gentoo.org>
Sun, 29 May 2011 10:57:11 +0000
(12:57 +0200)
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"
pym/gentoolkit/eshowkw/__init__.py
patch
|
blob
|
history
diff --git
a/pym/gentoolkit/eshowkw/__init__.py
b/pym/gentoolkit/eshowkw/__init__.py
index e0544a93c4bc9e40f9261d8cdafad543d1c36b14..86c59b74d7d50e9bb6cad13d8e0dbfba23564ce9 100644
(file)
--- 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.')