Man page disagrees with the current CLI options and defaults
Author: januththedevCreated Sep 26, 2026Updated Sep 26, 2026
Description
The Bandit man page disagrees with the current CLI in three independent ways.
Evidence
doc/source/man/bandit.rstdocuments-lfor--confidence-level, but that option has no short form;-lis--level.- The synopsis omits the registered
sarifformatter, while the options section includes it. - The
--aggregatedocumentation says the default is vulnerability-based, butbandit/cli/main.pysetsdefault="file", so output is grouped by filename.
Expected
The synopsis, option list, short flags, and default aggregation mode match argparse and the registered formatters.
Actual
The man page advertises a nonexistent short option, omits sarif from the synopsis, and describes the wrong default.
I found no issue or PR reporting these man-page errors. This is documentation-only and does not affect scan behavior or security checks.
Source: PyCQA/bandit