[scanner] implement the --list flag

This commit is contained in:
fnux 2021-04-22 10:20:49 +02:00
commit bb24d632d6
No known key found for this signature in database
GPG key ID: 4502C902C00A1E12
3 changed files with 67 additions and 17 deletions

View file

@ -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',