Skip to content

Commit

Permalink
update version and add version to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
antiboredom committed May 30, 2022
1 parent 597ef02 commit 1004033
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "videogrep"
version = "2.0.2"
version = "2.1.0"
description = "Videogrep is a command line tool that searches through dialog in video files and makes supercuts based on what it finds. Like grep but for video."
authors = ["Sam Lavigne <[email protected]>"]
license = "Anti-Capitalist"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_videogrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def File(path):


def test_version():
assert videogrep.__version__ == "2.0.2"
assert videogrep.__version__ == "2.1.0"


def test_srts():
Expand Down
2 changes: 1 addition & 1 deletion videogrep/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.0.2"
__version__ = "2.1.0"

from . import vtt, srt, sphinx, fcpxml
from .videogrep import (
Expand Down
9 changes: 8 additions & 1 deletion videogrep/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import argparse
from . import get_ngrams, sphinx, videogrep
from . import get_ngrams, sphinx, videogrep, __version__


def main():
Expand Down Expand Up @@ -104,6 +104,13 @@ def main():
default=0,
help="return ngrams for videos",
)
parser.add_argument(
"--version",
"-v",
help="show version",
action="version",
version=__version__,
)
args = parser.parse_args()

if args.ngrams > 0:
Expand Down

0 comments on commit 1004033

Please sign in to comment.