diff --git a/pyproject.toml b/pyproject.toml index 596af15..6bed6db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "Anti-Capitalist" diff --git a/tests/test_videogrep.py b/tests/test_videogrep.py index 8882455..7b0e9cf 100644 --- a/tests/test_videogrep.py +++ b/tests/test_videogrep.py @@ -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(): diff --git a/videogrep/__init__.py b/videogrep/__init__.py index 7683f36..a2110cf 100644 --- a/videogrep/__init__.py +++ b/videogrep/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.0.2" +__version__ = "2.1.0" from . import vtt, srt, sphinx, fcpxml from .videogrep import ( diff --git a/videogrep/cli.py b/videogrep/cli.py index 04ba9ef..efbbe05 100644 --- a/videogrep/cli.py +++ b/videogrep/cli.py @@ -1,5 +1,5 @@ import argparse -from . import get_ngrams, sphinx, videogrep +from . import get_ngrams, sphinx, videogrep, __version__ def main(): @@ -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: