From f1e8231b67fa8b9e5cafbe9a6b44eace4cfbe5ff Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Mon, 10 Oct 2016 12:42:01 +0300 Subject: [PATCH] Make usage's output independent. --- ssh-audit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssh-audit.py b/ssh-audit.py index d31d226..c0471c3 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -30,6 +30,7 @@ VERSION = 'v1.5.1.dev' def usage(err=None): + out = Output() p = os.path.basename(sys.argv[0]) out.head('# {0} {1}, moo@arthepsy.eu'.format(p, VERSION)) if err is not None: @@ -1640,6 +1641,6 @@ def audit(conf, sshv=None): utils = Utils.wrap() if __name__ == '__main__': - out = Output() conf = AuditConf.from_cmdline(sys.argv[1:], usage) + out = Output() audit(conf)