diff --git a/tg/__main__.py b/tg/__main__.py index 5736da5..3f861b1 100644 --- a/tg/__main__.py +++ b/tg/__main__.py @@ -63,4 +63,11 @@ def main() -> None: if __name__ == "__main__": + import sys + if len(sys.argv) > 1 and sys.argv[1] in ("-v", "--version"): + import tg + print("Terminal Telegram client") + # print("Version:", tg.__version__) + print("Version:", tg.__version__) + exit(0) main()