diff options
| author | Steve Piercy <web@stevepiercy.com> | 2016-12-06 02:39:17 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2016-12-13 17:39:00 -0800 |
| commit | 307ee47697125ee34c615b44c57a9d84dd24d732 (patch) | |
| tree | 8cf2ad1f09226071dd19b1775318e636d74c40cb | |
| parent | 31be0f5f72acf412486c66f2d423bbbec30091d5 (diff) | |
| download | pyramid-307ee47697125ee34c615b44c57a9d84dd24d732.tar.gz pyramid-307ee47697125ee34c615b44c57a9d84dd24d732.tar.bz2 pyramid-307ee47697125ee34c615b44c57a9d84dd24d732.zip | |
update remaining pscripts to use nargs
| -rw-r--r-- | pyramid/scripts/proutes.py | 2 | ||||
| -rw-r--r-- | pyramid/scripts/pshell.py | 2 | ||||
| -rw-r--r-- | pyramid/scripts/ptweens.py | 2 | ||||
| -rw-r--r-- | pyramid/scripts/pviews.py | 2 |
4 files changed, 8 insertions, 0 deletions
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 |
