Add version to command line arg

This commit is contained in:
Paul Nameless 2021-04-22 10:59:34 +03:00
parent a49c6cc619
commit 9433d47375

View file

@ -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()