diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-10-15 09:27:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 09:27:17 -0400 |
commit | 91ff185bc9491e20bdb10c61e4072d14fd63ff20 (patch) | |
tree | 54fde81d0e3ff7ddadff30c74c7fca5903e4ff65 | |
parent | 9435003a915e15defcaa24784cf0f3b04f9dd3a8 (diff) | |
parent | d99ad5153994c3ae283d1550fca882d1f210930d (diff) | |
download | cmd2-git-91ff185bc9491e20bdb10c61e4072d14fd63ff20.tar.gz |
Merge pull request #581 from python-cmd2/invoke_tag
Make name a required argument for the "invoke tag" command
-rw-r--r-- | cmd2/cmd2.py | 2 | ||||
-rw-r--r-- | tasks.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 66ae0968..8cc5496f 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -11,7 +11,7 @@ Multi-line commands Special-character shortcut commands (beyond cmd's "@" and "!") Settable environment parameters Parsing commands with `argparse` argument parsers (flags) -Redirection to file with >, >>; input from file with < +Redirection to file or paste buffer (clipboard) with > or >> Easy transcript-based testing of applications (see examples/example.py) Bash-style ``select`` available @@ -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: |