Merge pull request #2886 from stevepiercy/master
improve display of help's description for p* scripts
| | |
| | | |
| | | See https://github.com/Pylons/pyramid/pull/2881 and |
| | | https://github.com/Pylons/pyramid/pull/2883. |
| | | |
| | | - Improve output of p* script descriptions for help. |
| | | See https://github.com/Pylons/pyramid/pull/2886 |
| | |
| | | |
| | | class PCreateCommand(object): |
| | | verbosity = 1 # required |
| | | parser = argparse.ArgumentParser(description="""\ |
| | | parser = argparse.ArgumentParser( |
| | | description="""\ |
| | | Render Pyramid scaffolding to an output directory. |
| | | |
| | | Note: As of Pyramid 1.8, this command is deprecated. Use a specific |
| | | cookiecutter instead: |
| | | https://github.com/Pylons/?q=cookiecutter |
| | | """) |
| | | """, |
| | | formatter_class=argparse.RawDescriptionHelpFormatter, |
| | | ) |
| | | parser.add_argument('-s', '--scaffold', |
| | | dest='scaffold_name', |
| | | action='append', |
| | |
| | | """ |
| | | |
| | | parser = argparse.ArgumentParser( |
| | | description=textwrap.dedent(description) |
| | | description=textwrap.dedent(description), |
| | | formatter_class=argparse.RawDescriptionHelpFormatter, |
| | | ) |
| | | parser.add_argument( |
| | | '-n', '--app-name', |
| | |
| | | stdout = sys.stdout |
| | | ConfigParser = configparser.ConfigParser # testing |
| | | parser = argparse.ArgumentParser( |
| | | description=textwrap.dedent(description) |
| | | description=textwrap.dedent(description), |
| | | formatter_class=argparse.RawDescriptionHelpFormatter, |
| | | ) |
| | | parser.add_argument('-g', '--glob', |
| | | action='store', |
| | |
| | | default_verbosity = 1 |
| | | |
| | | parser = argparse.ArgumentParser( |
| | | description=textwrap.dedent(description) |
| | | description=textwrap.dedent(description), |
| | | formatter_class=argparse.RawDescriptionHelpFormatter, |
| | | ) |
| | | parser.add_argument( |
| | | '-n', '--app-name', |
| | |
| | | pkg_resources = pkg_resources # for testing |
| | | |
| | | parser = argparse.ArgumentParser( |
| | | description=textwrap.dedent(description) |
| | | description=textwrap.dedent(description), |
| | | formatter_class=argparse.RawDescriptionHelpFormatter, |
| | | ) |
| | | parser.add_argument('-p', '--python-shell', |
| | | action='store', |
| | |
| | | """ |
| | | parser = argparse.ArgumentParser( |
| | | description=textwrap.dedent(description), |
| | | formatter_class=argparse.RawDescriptionHelpFormatter, |
| | | ) |
| | | |
| | | parser.add_argument('config_uri', |
| | |
| | | stdout = sys.stdout |
| | | |
| | | parser = argparse.ArgumentParser( |
| | | description=textwrap.dedent(description) |
| | | description=textwrap.dedent(description), |
| | | formatter_class=argparse.RawDescriptionHelpFormatter, |
| | | ) |
| | | |
| | | parser.add_argument('config_uri', |