Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1474·bandit

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

  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.

Source: PyCQA/bandit

View original on GitHubView discussion on GitHub