forked from orbit-oss/flask
Merge remote-tracking branch 'origin/1.1.x'
This commit is contained in:
commit
037ae3f024
4 changed files with 6 additions and 6 deletions
|
|
@ -423,7 +423,7 @@ command line. ::
|
|||
|
||||
@app.cli.command('hello')
|
||||
@click.option('--name', default='World')
|
||||
def hello_command(name)
|
||||
def hello_command(name):
|
||||
click.echo(f'Hello, {name}!')
|
||||
|
||||
def test_hello():
|
||||
|
|
@ -450,7 +450,7 @@ This is useful for testing complex validation rules and custom types. ::
|
|||
|
||||
@app.cli.command('hello')
|
||||
@click.option('--name', default='World', callback=upper)
|
||||
def hello_command(name)
|
||||
def hello_command(name):
|
||||
click.echo(f'Hello, {name}!')
|
||||
|
||||
def test_hello_params():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue