Skip to content

Commit 91ff185

Browse files
authored
Merge pull request #581 from python-cmd2/invoke_tag
Make name a required argument for the "invoke tag" command
2 parents 9435003 + d99ad51 commit 91ff185

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Special-character shortcut commands (beyond cmd's "@" and "!")
1212
Settable environment parameters
1313
Parsing commands with `argparse` argument parsers (flags)
14-
Redirection to file with >, >>; input from file with <
14+
Redirection to file or paste buffer (clipboard) with > or >>
1515
Easy transcript-based testing of applications (see examples/example.py)
1616
Bash-style ``select`` available
1717

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)