Batch mode no longer automatically enables verbose mode.

This commit is contained in:
Joe Testa 2024-12-05 10:06:58 -05:00
parent d9c703c777
commit e318787a5c
3 changed files with 2 additions and 2 deletions

View File

@ -220,6 +220,7 @@ For convenience, a web front-end on top of the command-line tool is available at
- Added warning to all key exchanges that do not include protections against quantum attacks due to the Harvest Now, Decrypt Later strategy (see https://en.wikipedia.org/wiki/Harvest_now,_decrypt_later).
- Migrated from deprecated `getopt` module to `argparse`; partial credit [oam7575](https://github.com/oam7575).
- When running against multiple hosts, now prints each target host regardless of output level.
- Batch mode (`-b`) no longer automatically enables verbose mode, due to sometimes confusing results; users can still explicitly enable verbose mode using the `-v` flag.
### v3.3.0 (2024-10-15)
- Added Python 3.13 support.

View File

@ -842,7 +842,6 @@ def process_commandline(out: OutputBuffer, args: List[str]) -> 'AuditConf': # p
if argument.batch is True:
aconf.batch = True
aconf.verbose = True
# If one -j was given, turn on JSON output. If -jj was given, enable indentation.
aconf.json = argument.json > 0

View File

@ -162,7 +162,7 @@ class TestAuditConf:
conf = c('-64 localhost')
self._test_conf(conf, host='localhost', ipv4=True, ipv6=True, ipvo=(6, 4))
conf = c('-b localhost')
self._test_conf(conf, host='localhost', batch=True, verbose=True)
self._test_conf(conf, host='localhost', batch=True)
conf = c('-n localhost')
self._test_conf(conf, host='localhost', colors=False)
conf = c('-v localhost')