diff options
| -rw-r--r-- | pyramid/scripts/prequest.py | 2 | ||||
| -rw-r--r-- | pyramid/scripts/pviews.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/scripts/prequest.py b/pyramid/scripts/prequest.py index f0ac0dfa9..1136dd409 100644 --- a/pyramid/scripts/prequest.py +++ b/pyramid/scripts/prequest.py @@ -123,7 +123,7 @@ class PRequestCommand(object): setup_logging(app_spec) def run(self): - if not self.args.config_uri and not self.args.path_info: + if not self.args.config_uri or not self.args.path_info: self.out('You must provide at least two arguments') return 2 app_spec = self.args.config_uri diff --git a/pyramid/scripts/pviews.py b/pyramid/scripts/pviews.py index c109f884a..64408bdad 100644 --- a/pyramid/scripts/pviews.py +++ b/pyramid/scripts/pviews.py @@ -247,7 +247,7 @@ class PViewsCommand(object): self.out("%sview predicates (%s)" % (indent, predicate_text)) def run(self): - if not self.args.config_uri and not self.args.url: + if not self.args.config_uri or not self.args.url: self.out('Command requires a config file arg and a url arg') return 2 config_uri = self.args.config_uri |
