Skip to content

Commit e318787

Browse files
committed
Batch mode no longer automatically enables verbose mode.
1 parent d9c703c commit e318787

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ For convenience, a web front-end on top of the command-line tool is available at
220220
- 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).
221221
- Migrated from deprecated `getopt` module to `argparse`; partial credit [oam7575](https://github.com/oam7575).
222222
- When running against multiple hosts, now prints each target host regardless of output level.
223+
- 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.
223224

224225
### v3.3.0 (2024-10-15)
225226
- Added Python 3.13 support.

src/ssh_audit/ssh_audit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,6 @@ def process_commandline(out: OutputBuffer, args: List[str]) -> 'AuditConf': # p
842842

843843
if argument.batch is True:
844844
aconf.batch = True
845-
aconf.verbose = True
846845

847846
# If one -j was given, turn on JSON output. If -jj was given, enable indentation.
848847
aconf.json = argument.json > 0

test/test_auditconf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def test_audit_conf_process_commandline(self):
162162
conf = c('-64 localhost')
163163
self._test_conf(conf, host='localhost', ipv4=True, ipv6=True, ipvo=(6, 4))
164164
conf = c('-b localhost')
165-
self._test_conf(conf, host='localhost', batch=True, verbose=True)
165+
self._test_conf(conf, host='localhost', batch=True)
166166
conf = c('-n localhost')
167167
self._test_conf(conf, host='localhost', colors=False)
168168
conf = c('-v localhost')

0 commit comments

Comments
 (0)