mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-22 18:41:40 +01:00
Make usage's output independent.
This commit is contained in:
parent
4d16a58f22
commit
f1e8231b67
@ -30,6 +30,7 @@ VERSION = 'v1.5.1.dev'
|
|||||||
|
|
||||||
|
|
||||||
def usage(err=None):
|
def usage(err=None):
|
||||||
|
out = Output()
|
||||||
p = os.path.basename(sys.argv[0])
|
p = os.path.basename(sys.argv[0])
|
||||||
out.head('# {0} {1}, moo@arthepsy.eu'.format(p, VERSION))
|
out.head('# {0} {1}, moo@arthepsy.eu'.format(p, VERSION))
|
||||||
if err is not None:
|
if err is not None:
|
||||||
@ -1640,6 +1641,6 @@ def audit(conf, sshv=None):
|
|||||||
|
|
||||||
utils = Utils.wrap()
|
utils = Utils.wrap()
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
out = Output()
|
|
||||||
conf = AuditConf.from_cmdline(sys.argv[1:], usage)
|
conf = AuditConf.from_cmdline(sys.argv[1:], usage)
|
||||||
|
out = Output()
|
||||||
audit(conf)
|
audit(conf)
|
||||||
|
Loading…
Reference in New Issue
Block a user