From 78d1e4aefa4948904c354268abd53b9311f79b7d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 14 Dec 2011 07:38:28 -0500 Subject: add a backwards compatibility knob to pcreate to emulate paster create handling of --list-templates --- CHANGES.txt | 3 +++ pyramid/scripts/pcreate.py | 5 +++++ 2 files changed, 8 insertions(+) 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', -- cgit v1.2.3