Use imperative tense for CLI help text

This commit is contained in:
Grey Li 2018-12-01 09:01:12 +08:00 committed by David Lord
parent 15c079f500
commit d0ceb16be9
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -724,7 +724,7 @@ def _validate_key(ctx, param, value):
return value
@click.command('run', short_help='Runs a development server.')
@click.command('run', short_help='Run a development server.')
@click.option('--host', '-h', default='127.0.0.1',
help='The interface to bind to.')
@click.option('--port', '-p', default=5000,
@ -776,10 +776,10 @@ def run_command(info, host, port, reload, debugger, eager_loading,
threaded=with_threads, ssl_context=cert)
@click.command('shell', short_help='Runs a shell in the app context.')
@click.command('shell', short_help='Run a shell in the app context.')
@with_appcontext
def shell_command():
"""Runs an interactive Python shell in the context of a given
"""Run an interactive Python shell in the context of a given
Flask application. The application will populate the default
namespace of this shell according to it's configuration.