summaryrefslogtreecommitdiff
path: root/pyramid/scripts/pserve.py
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2016-12-10 18:56:58 -0800
committerSteve Piercy <web@stevepiercy.com>2016-12-13 17:39:41 -0800
commita8667577659a2622973dc80d177ac143fd161587 (patch)
treeacc14cfc1ca47c2e539deb4a6271e5d0c008ef4c /pyramid/scripts/pserve.py
parentd631aff9fd4a144cb9fce265b644aa3affbb6188 (diff)
downloadpyramid-a8667577659a2622973dc80d177ac143fd161587.tar.gz
pyramid-a8667577659a2622973dc80d177ac143fd161587.tar.bz2
pyramid-a8667577659a2622973dc80d177ac143fd161587.zip
refactor config_args to config_vars
Diffstat (limited to 'pyramid/scripts/pserve.py')
-rw-r--r--pyramid/scripts/pserve.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyramid/scripts/pserve.py b/pyramid/scripts/pserve.py
index 3816e7c75..51cdd235a 100644
--- a/pyramid/scripts/pserve.py
+++ b/pyramid/scripts/pserve.py
@@ -104,7 +104,7 @@ class PServeCommand(object):
help='The URI to the configuration file.',
)
parser.add_argument(
- 'config_args',
+ 'config_vars',
nargs='*',
default=(),
help='Arbitrary options to override those in the [app:main] section '
@@ -128,8 +128,8 @@ class PServeCommand(object):
if self.args.verbose > 0:
print(msg)
- def get_config_args(self):
- restvars = self.args.config_args
+ def get_config_vars(self):
+ restvars = self.args.config_vars
return parse_vars(restvars)
def pserve_file_config(self, filename, global_conf=None):
@@ -164,7 +164,7 @@ class PServeCommand(object):
return 2
app_spec = self.args.config_uri
- vars = self.get_config_args()
+ vars = self.get_config_vars()
app_name = self.args.app_name
base = os.getcwd()