Document new arguments.

This commit is contained in:
Andris Raugulis 2016-09-02 18:08:15 +03:00
parent 0a5d66fcde
commit 72b0c2e216
2 changed files with 11 additions and 7 deletions

View File

@ -11,12 +11,16 @@
## Usage
```
usage: ssh-audit.py [-nv] host[:port]
usage: ssh-audit.py [-bnv] [-l <level>] <host[:port]>
-v verbose
-n disable colors
-b, --batch batch output
-n, --no-colors disable colors
-v, --verbose verbose output
-l, --level=<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)

View File

@ -39,9 +39,9 @@ def usage(err=None):
out.fail('\n' + err)
out.info('\nusage: {0} [-bnv] [-l <level>] <host[:port]>\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=<level> minimum output level (info|warn|fail)')
out.sep()
sys.exit(1)