diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-10-14 22:02:19 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-10-14 22:02:19 -0400 |
commit | 2caf5a3d67016a84cf0c3d6243bee20f98db0abd (patch) | |
tree | b7c462f514d17799d755a51ff42235a4b82e0c45 /tasks.py | |
parent | 9435003a915e15defcaa24784cf0f3b04f9dd3a8 (diff) | |
download | cmd2-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |