From 2caf5a3d67016a84cf0c3d6243bee20f98db0abd Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sun, 14 Oct 2018 22:02:19 -0400 Subject: Make name a required argument for the "invoke tag" command This causes the "invoke tag" command to function in an intuitive fashion as so: invoke tag tag_name Previously when name was an optional argument, the name needed to be set using a flag like so: invoke tag -n tag_name This has the side benefit of now making the recommended usage in the Contributor's Guide correct. --- tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tasks.py') diff --git a/tasks.py b/tasks.py index d6dc43c9..46cd57c1 100644 --- a/tasks.py +++ b/tasks.py @@ -176,7 +176,7 @@ def clean_all(context): namespace_clean.add_task(clean_all, 'all') @invoke.task -def tag(context, name='', message=''): +def tag(context, name, message=''): "Add a Git tag and push it to origin" # If a tag was provided on the command-line, then add a Git tag and push it to origin if name: -- cgit v1.2.1