mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Add version to command line arg
This commit is contained in:
parent
a49c6cc619
commit
9433d47375
1 changed files with 7 additions and 0 deletions
|
@ -63,4 +63,11 @@ def main() -> None:
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue