summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-12-14 07:38:28 -0500
committerChris McDonough <chrism@plope.com>2011-12-14 07:38:28 -0500
commit78d1e4aefa4948904c354268abd53b9311f79b7d (patch)
treea64ae6c7be315ad993c50da6d7e330e24993cb32
parent4375cf2bad3535ce896e95fcf1e388e33f2e8ecf (diff)
downloadpyramid-78d1e4aefa4948904c354268abd53b9311f79b7d.tar.gz
pyramid-78d1e4aefa4948904c354268abd53b9311f79b7d.tar.bz2
pyramid-78d1e4aefa4948904c354268abd53b9311f79b7d.zip
add a backwards compatibility knob to pcreate to emulate paster create handling of --list-templates
-rw-r--r--CHANGES.txt3
-rw-r--r--pyramid/scripts/pcreate.py5
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index c979c4dc1..977503948 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -10,6 +10,9 @@ Features
``@view_config`` decorator that decorates a method of that class. It also
works against view configurations involving a class made imperatively.
+- Added a backwards compatibility knob to ``pcreate`` to emulate ``paster
+ create`` handling for the ``--list-templates`` option.
+
Documentation
-------------
diff --git a/pyramid/scripts/pcreate.py b/pyramid/scripts/pcreate.py
index dacebd6ea..0057402b3 100644
--- a/pyramid/scripts/pcreate.py
+++ b/pyramid/scripts/pcreate.py
@@ -34,6 +34,11 @@ class PCreateCommand(object):
dest='list',
action='store_true',
help="List all available scaffold names")
+ parser.add_option('--list-templates',
+ dest='list',
+ action='store_true',
+ help=("A backwards compatibility alias for -l/--list. "
+ "List all available scaffold names."))
parser.add_option('--simulate',
dest='simulate',
action='store_true',