Skip to content

Commit

Permalink
fix(bumpver): doctest allowed tag-msg without new tag-id
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Oct 16, 2017
1 parent 5c9ec02 commit eee7c2a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/bumpver.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
Script to bump, commit and tag new versions.
USAGE:
bumpver [-n] [-f] [-c] [-a] [-t <message>] [<new-ver>]
bumpver
bumpver [-n] [-f] [-c] [-a] [-t <message>] <new-ver>
Without <new-ver> prints version extracted from current file.
Don't add a 'v' prefix!
OPTIONS:
-a, --amend Amend current commit for setting the "chore(ver): ..." msg.
Expand All @@ -13,8 +17,6 @@
-c, --commit Commit afterwardswith a commit-message describing version bump.
-t, --tag=<msg> Adds a signed tag with the given message (commit implied).
- Without <new-ver> prints version extracted from current file.
- Don't add a 'v' prefix!
- Pre-releases: when working on some verion
X.YbN # Beta release
Expand Down Expand Up @@ -226,6 +228,7 @@ def main(*args):
opts = docopt.docopt(__doc__, argv=args)

new_ver = opts['<new-ver>']

assert not new_ver or new_ver[0] != 'v', (
"Version '%s' must NOT start with `v`!" % new_ver)

Expand Down

0 comments on commit eee7c2a

Please sign in to comment.