[scanner] implement the --list flag
This commit is contained in:
parent
a4464209b6
commit
bb24d632d6
3 changed files with 67 additions and 17 deletions
|
|
@ -486,6 +486,10 @@ def get_parsers():
|
|||
'-m', '--mode', help='Which modes should run',
|
||||
action='append', default=[],
|
||||
choices=['scan', 'trigger'])
|
||||
parser['scan'].add_argument(
|
||||
'--list',
|
||||
action='store_true',
|
||||
help='List the known hosts and exit')
|
||||
parser['scan'].add_argument(
|
||||
'--config',
|
||||
action='store_true',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue