From 72b0c2e2169137414b1b7c20ce037f64a076b80f Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Fri, 2 Sep 2016 18:08:15 +0300 Subject: [PATCH] Document new arguments. --- README.md | 12 ++++++++---- ssh-audit.py | 6 +++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 90266de..dd0dec5 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,16 @@ ## Usage ``` -usage: ssh-audit.py [-nv] host[:port] +usage: ssh-audit.py [-bnv] [-l ] - -v verbose - -n disable colors + -b, --batch batch output + -n, --no-colors disable colors + -v, --verbose verbose output + -l, --level= minimum output level (info|warn|fail) + ``` -Verbose flag will fill each row, i.e, not leave blanks, for easier usage with _batch_ scripts or with manual grepping. +* batch flag `-b` will output sections without header and without empty lines (implies verbose flag). +* verbose flag `-v` will prefix each line with section type and algorithm name. ### example ![screenshot](https://cloud.githubusercontent.com/assets/7356025/17623665/da5281c8-60a9-11e6-9582-13f9971c22e0.png) diff --git a/ssh-audit.py b/ssh-audit.py index 42a344d..599ad9c 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -39,9 +39,9 @@ def usage(err=None): out.fail('\n' + err) out.info('\nusage: {0} [-bnv] [-l ] \n'.format(p)) out.info(' -h, --help print this help') - out.info(' -b --batch batch output') - out.info(' -n --no-colors disable colors') - out.info(' -v --verbose verbose output') + out.info(' -b, --batch batch output') + out.info(' -n, --no-colors disable colors') + out.info(' -v, --verbose verbose output') out.info(' -l, --level= minimum output level (info|warn|fail)') out.sep() sys.exit(1)