From a4f18f93ecaf1fcd0bfb78aba7c6faf99762d253 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Wed, 7 Dec 2016 20:31:45 -0800 Subject: update proutes with argparse-ish stuff --- pyramid/scripts/proutes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyramid/scripts/proutes.py b/pyramid/scripts/proutes.py index a957b622a..696bdd953 100644 --- a/pyramid/scripts/proutes.py +++ b/pyramid/scripts/proutes.py @@ -326,8 +326,8 @@ class PRoutesCommand(object): self.out('requires a config file argument') return 2 - config_uri = self.args[0] - env = self.bootstrap[0](config_uri, options=parse_vars(self.args[1:])) + config_uri = self.args.config_uri + env = self.bootstrap[0](config_uri, options=vars(self.args)) registry = env['registry'] mapper = self._get_mapper(registry) -- cgit v1.2.3