commit:     42279c7cd61ddfb9504bb7cb2ee05f65d4f851eb
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 14 19:30:40 2014 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Fri Jun 19 19:47:20 2015 +0000
URL:        https://gitweb.gentoo.org/proj/webapp-config.git/commit/?id=42279c7c

config.py: Modifies --list_unused_installed to nargs = "*"

In order to allow the nature of --list_unused_installed to remain true
to the nature of the command line arg, the nargs has been changed to
"*". This allows --list_unused_installed to be called with 0 or more
args via the argparse python class.

 WebappConfig/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index 99ccedd..10a6f26 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -598,7 +598,7 @@ class Config:
 
         info_opts.add_argument('-lui',
                                '--list-unused-installs',
-                               action='store_true',
+                               nargs = '*',
                                help = 'List all master images which currently 
a'
                                're not used. Optionally, provide a package 
and/'
                                'or version number as arguments to restrict the 
'

Reply via email to