Skip to content

Commit 2caf5a3

Browse files
committed
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.
1 parent 9435003 commit 2caf5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def clean_all(context):
176176
namespace_clean.add_task(clean_all, 'all')
177177

178178
@invoke.task
179-
def tag(context, name='', message=''):
179+
def tag(context, name, message=''):
180180
"Add a Git tag and push it to origin"
181181
# If a tag was provided on the command-line, then add a Git tag and push it to origin
182182
if name:

0 commit comments

Comments
 (0)