Skip to content

Commit

Permalink
Print version of haproxyadmin library as well
Browse files Browse the repository at this point in the history
It is quite useful to know the version of harpoxyadmin library that we
load, so let's print it when we print our version.
  • Loading branch information
Pavlos Parissis committed Apr 16, 2019
1 parent f3cfc64 commit b6993d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion haproxytool/cli.py
Expand Up @@ -24,15 +24,19 @@
from operator import methodcaller
from importlib import import_module
from docopt import docopt
from haproxytool import __version__ as version
from haproxytool import __version__
from haproxytool import OUR_CMDS
from haproxyadmin import __version__ as hapadmin_version


def main():
"""
Parse top level CLI interface and invoke subcommand
"""
version = ("haproxytool version: {}, haproxyadmin library version: {}"
.format(__version__, hapadmin_version))
args = docopt(__doc__, version=version, options_first=True)
print(args)

call_main = methodcaller('main')

Expand Down

0 comments on commit b6993d0

Please sign in to comment.