bandit icon indicating copy to clipboard operation
bandit copied to clipboard

Man page disagrees with the current CLI options and defaults

Open januththedev opened this issue 2 months ago • 1 comments

Description

The Bandit man page disagrees with the current CLI in three independent ways.

Evidence

  1. doc/source/man/bandit.rst documents -l for --confidence-level, but that option has no short form; -l is --level.
  2. The synopsis omits the registered sarif formatter, while the options section includes it.
  3. The --aggregate documentation says the default is vulnerability-based, but bandit/cli/main.py sets default="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.

januththedev avatar Sep 26 '26 11:09 januththedev

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 compileall passed

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?

januththedev avatar Sep 26 '26 11:09 januththedev