Skip to content

Commit 1004033

Browse files
committed
update version and add version to cli
1 parent 597ef02 commit 1004033

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "videogrep"
3-
version = "2.0.2"
3+
version = "2.1.0"
44
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."
55
authors = ["Sam Lavigne <[email protected]>"]
66
license = "Anti-Capitalist"

tests/test_videogrep.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def File(path):
1313

1414

1515
def test_version():
16-
assert videogrep.__version__ == "2.0.2"
16+
assert videogrep.__version__ == "2.1.0"
1717

1818

1919
def test_srts():

videogrep/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.0.2"
1+
__version__ = "2.1.0"
22

33
from . import vtt, srt, sphinx, fcpxml
44
from .videogrep import (

videogrep/cli.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import argparse
2-
from . import get_ngrams, sphinx, videogrep
2+
from . import get_ngrams, sphinx, videogrep, __version__
33

44

55
def main():
@@ -104,6 +104,13 @@ def main():
104104
default=0,
105105
help="return ngrams for videos",
106106
)
107+
parser.add_argument(
108+
"--version",
109+
"-v",
110+
help="show version",
111+
action="version",
112+
version=__version__,
113+
)
107114
args = parser.parse_args()
108115

109116
if args.ngrams > 0:

0 commit comments

Comments
 (0)