summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2014-10-14 15:30:40 -0400
committerDevan Franchini <twitch153@gentoo.org>2015-06-19 15:47:20 -0400
commit42279c7cd61ddfb9504bb7cb2ee05f65d4f851eb (patch)
tree63df9f827edf77fe4bab2d831d9ca95345866973
parentconfig.py: Adds more thorough checking for setting self.work (diff)
downloadwebapp-config-42279c7cd61ddfb9504bb7cb2ee05f65d4f851eb.tar.gz
webapp-config-42279c7cd61ddfb9504bb7cb2ee05f65d4f851eb.tar.bz2
webapp-config-42279c7cd61ddfb9504bb7cb2ee05f65d4f851eb.zip
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.
-rw-r--r--WebappConfig/config.py2
1 files changed, 1 insertions, 1 deletions
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 '