-
Notifications
You must be signed in to change notification settings - Fork 384
Open
Description
$ cat tasks.py
from invoke import task
@task
def hi(ctx, name):
print("Hi {0}!".format(name))
$ invoke --help hi
Usage: inv[oke] [--core-opts] hi [--options] [other tasks here ...]
Docstring:
none
Options:
-n STRING, --name=STRING
$ invoke hi
'hi' did not receive all required positional arguments!
The auto-generated usage does not indicate that a positional argument is required. hi [--options] [other tasks here ...] seems to imply the opposite - that all arguments are optional.
In addition, we should be able to print the required positional arguments when we do not receive all of them.
bmamouri, Xeite, antoine-gallix, nonylene, nmaludy and 6 more