From 1fc1b819f9364c0d64fc4e60c514141a58d641da Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Sat, 10 Dec 2016 18:06:59 -0800 Subject: test for self.args.list and self.args.config_uri --- pyramid/scripts/pshell.py | 6 +++--- 1 file 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) -- cgit v1.2.3