Closed
Description
click==6.6, django-click==1.2.0, django==1.5.12
If the one required parameter is omitted from the following management command, the user sees the error message in the subject of this issue
import djclick as click
@click.command()
@click.argument('name')
def command(name):
click.secho('Hello, {}'.format(name), fg='red')
If the one required parameter is omitted from the following command, the user sees a better error message.
import click
@click.command()
@click.argument('name')
def hello(name):
click.secho('Hello, {}'.format(name), fg='red')
if __name__ == '__main__':
hello()
$ python foo.py
Usage: foo.py [OPTIONS] NAME
Error: Missing argument "name".
Any ideas? This would seem to be a django-click issue?
Metadata
Metadata
Assignees
Labels
No labels