Man page disagrees with the current CLI options and defaults
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.
I prepared a focused documentation fix on januththedev:docs/fix-man-page:
- commit:
27b1567 - branch: https://github.com/januththedev/bandit/tree/docs/fix-man-page
- verification: AST-based consistency check and
compileallpassed
GitHub rejected direct PR creation for this account with CreatePullRequest permission. Could a maintainer approve the contribution or open the equivalent PR from the branch?