summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-10-14 22:02:19 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-10-14 22:02:19 -0400
commit2caf5a3d67016a84cf0c3d6243bee20f98db0abd (patch)
treeb7c462f514d17799d755a51ff42235a4b82e0c45 /tasks.py
parent9435003a915e15defcaa24784cf0f3b04f9dd3a8 (diff)
downloadcmd2-git-2caf5a3d67016a84cf0c3d6243bee20f98db0abd.tar.gz
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.
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py2
1 files changed, 1 insertions, 1 deletions
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: