From 307ee47697125ee34c615b44c57a9d84dd24d732 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Tue, 6 Dec 2016 02:39:17 -0800 Subject: update remaining pscripts to use nargs --- pyramid/scripts/proutes.py | 2 ++ pyramid/scripts/pshell.py | 2 ++ pyramid/scripts/ptweens.py | 2 ++ pyramid/scripts/pviews.py | 2 ++ 4 files changed, 8 insertions(+) diff --git a/pyramid/scripts/proutes.py b/pyramid/scripts/proutes.py index e745e19fd..a957b622a 100644 --- a/pyramid/scripts/proutes.py +++ b/pyramid/scripts/proutes.py @@ -268,6 +268,8 @@ class PRoutesCommand(object): parser.add_argument( 'config_uri', + nargs='?', + default=None, help='The URI to the configuration file.', ) diff --git a/pyramid/scripts/pshell.py b/pyramid/scripts/pshell.py index 4289f10c4..a7fa121cf 100644 --- a/pyramid/scripts/pshell.py +++ b/pyramid/scripts/pshell.py @@ -66,6 +66,8 @@ class PShellCommand(object): "option will override the 'setup' key in the " "[pshell] ini section.")) parser.add_argument('config_uri', + nargs='?', + default=None, help='The URI to the configuration file.') ConfigParser = configparser.ConfigParser # testing diff --git a/pyramid/scripts/ptweens.py b/pyramid/scripts/ptweens.py index ed91757ab..4c1555473 100644 --- a/pyramid/scripts/ptweens.py +++ b/pyramid/scripts/ptweens.py @@ -33,6 +33,8 @@ class PTweensCommand(object): ) parser.add_argument('config_uri', + nargs='?', + default=None, help='The URI to the configuration file.') stdout = sys.stdout diff --git a/pyramid/scripts/pviews.py b/pyramid/scripts/pviews.py index e93d90a53..7776077a8 100644 --- a/pyramid/scripts/pviews.py +++ b/pyramid/scripts/pviews.py @@ -33,6 +33,8 @@ class PViewsCommand(object): ) parser.add_argument('config_uri', + nargs='?', + default=None, help='The URI to the configuration file.') bootstrap = (bootstrap,) # testing -- cgit v1.2.3