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:
parent
1776a19037
commit
7445c16947
@ -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("")
|
||||
|
Loading…
Reference in New Issue
Block a user