1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Show version number in help text

This commit is contained in:
Ivan Habunek 2018-06-12 12:22:16 +02:00
parent 1776a19037
commit 7445c16947
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -6,7 +6,7 @@ import logging
from argparse import ArgumentParser, FileType
from collections import namedtuple
from toot import config, commands, CLIENT_NAME, CLIENT_WEBSITE
from toot import config, commands, CLIENT_NAME, CLIENT_WEBSITE, __version__
from toot.exceptions import ApiError, ConsoleError
from toot.output import print_out, print_err
@ -280,6 +280,7 @@ def print_usage():
]
print_out("<green>{}</green>".format(CLIENT_NAME))
print_out("<blue>v{}</blue>".format(__version__))
for name, cmds in groups:
print_out("")