1 |
commit: a87846fbb8d3f88d37d8c295021921a6e136145c |
2 |
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 29 10:57:11 2011 +0000 |
4 |
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 10:57:11 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=a87846fb |
7 |
|
8 |
Allow only one arg for --arch/-a |
9 |
|
10 |
Allowing multiple args for -a/--arch causes some trouble (depending on the order) |
11 |
E.g. "eshowkw cat/pkg -a a b" would work while "eshowkw -a a cat/pkg" wouldn't |
12 |
because it would count cat/pkg to the -a/--arch option. |
13 |
|
14 |
eshowkw -a amd64 kdelibs |
15 |
No ebuilds at "/root" |
16 |
|
17 |
--- |
18 |
pym/gentoolkit/eshowkw/__init__.py | 2 +- |
19 |
1 files changed, 1 insertions(+), 1 deletions(-) |
20 |
|
21 |
diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py |
22 |
index e0544a9..86c59b7 100644 |
23 |
--- a/pym/gentoolkit/eshowkw/__init__.py |
24 |
+++ b/pym/gentoolkit/eshowkw/__init__.py |
25 |
@@ -56,7 +56,7 @@ def process_args(argv): |
26 |
|
27 |
parser.add_argument('package', nargs='*', default=None, help='Packages to check.') |
28 |
|
29 |
- parser.add_argument('-a', '--arch', nargs='+', default=[], help='Display only specified arch(s)') |
30 |
+ parser.add_argument('-a', '--arch', nargs=1, default=[], help='Display only specified arch(s)') |
31 |
|
32 |
parser.add_argument('-A', '--align', nargs='?', default='bottom', choices=['top', 'bottom'], |
33 |
help='Specify alignment for descriptions.') |