mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-22 02:21:40 +01:00
Document new arguments.
This commit is contained in:
parent
0a5d66fcde
commit
72b0c2e216
12
README.md
12
README.md
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user