We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 489cf3c commit 160dd1aCopy full SHA for 160dd1a
kgl/cli.py
@@ -2,6 +2,7 @@
2
import os
3
import json
4
from .graph import KnowledgeGraph
5
+from . import __version__
6
7
# Create ~/.cache/kgl if it doesn't exist
8
if not os.path.exists(os.path.expanduser("~/.cache/kgl")):
@@ -18,6 +19,7 @@ def set_current(graph):
18
19
json.dump(graph, f)
20
21
@click.group()
22
+@click.version_option(version=__version__)
23
def cli():
24
pass
25
0 commit comments