summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2016-12-10 18:06:59 -0800
committerSteve Piercy <web@stevepiercy.com>2016-12-13 17:39:41 -0800
commit1fc1b819f9364c0d64fc4e60c514141a58d641da (patch)
treea0528c4313f14c416d602145f7c7a5bc6750dd9c
parent898014c2e3b3fcebe5c5e7040ff3ca1409422873 (diff)
downloadpyramid-1fc1b819f9364c0d64fc4e60c514141a58d641da.tar.gz
pyramid-1fc1b819f9364c0d64fc4e60c514141a58d641da.tar.bz2
pyramid-1fc1b819f9364c0d64fc4e60c514141a58d641da.zip
test for self.args.list and self.args.config_uri
-rw-r--r--pyramid/scripts/pshell.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyramid/scripts/pshell.py b/pyramid/scripts/pshell.py
index a7fa121cf..9268c6e10 100644
--- a/pyramid/scripts/pshell.py
+++ b/pyramid/scripts/pshell.py
@@ -110,12 +110,12 @@ class PShellCommand(object):
print(msg)
def run(self, shell=None):
- if self.options.list:
+ if self.args.list:
return self.show_shells()
- if not self.args:
+ if not self.args.config_uri:
self.out('Requires a config file argument')
return 2
- config_uri = self.args[0]
+ config_uri = self.args.config_uri
config_file = config_uri.split('#', 1)[0]
setup_logging(config_file)
self.pshell_file_config(config_file)