summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2014-10-14 15:26:36 -0400
committerDevan Franchini <twitch153@gentoo.org>2015-06-19 15:47:08 -0400
commite61bebefada3a9f61940824e348cb5f25e901911 (patch)
tree7749f1d492261bed74fc59493b7158bcc77b989b
parentconfig.py: Changes --query nargs to 2 (diff)
downloadwebapp-config-e61bebefada3a9f61940824e348cb5f25e901911.tar.gz
webapp-config-e61bebefada3a9f61940824e348cb5f25e901911.tar.bz2
webapp-config-e61bebefada3a9f61940824e348cb5f25e901911.zip
config.py: Adds more thorough checking for setting self.work
-rw-r--r--WebappConfig/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index acf7b7a..99ccedd 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -582,7 +582,7 @@ class Config:
info_opts.add_argument('-li',
'--list-installs',
- action='store_true',
+ nargs = 2,
help = 'List all current virtual installs for <a'
'pplication>. Use * for the package name and/or '
'version number to list more than one package / '
@@ -966,7 +966,7 @@ class Config:
sys.exit()
for i in work:
- if options.get(i):
+ if options.get(i) != None and options.get(i) != False:
self.work = i
break