Skip to content

docs/config.md per-command flag list is wrong for bench and debug #152

Done

Description

@TMHSDigital

Summary

The per-command flag list in docs/config.md is wrong for bench and debug, leaves out the baseline command, and never mentions --diff-scope.

Where and what

  • docs/config.md:113 says "bench takes all but --authorize, --pr, --fail-on, --fail-on-confidence and --format" and "debug takes all but --authorize, --pr, --fail-on and --fail-on-confidence". "All" refers to the list at line 107, which includes --baseline, --ref, --since, --changed, --staged, --resume and --dry-run. Neither command takes any of these: --baseline is in its own group, which only scan registers (internal/cli/flags.go:62-69), and the diff and resume flags are registered only in internal/cli/scan.go. Passing spackle debug --baseline x is a usage error (exit 2). List the flags each command takes, or add these to the exclusions.
  • Same line: the spackle baseline command is missing. It takes --config, --out (a file, or - for stdout) and --reason (internal/cli/baseline.go:21-23).
  • docs/config.md:107 describes --since, --changed and --staged but not --diff-scope (internal/cli/scan.go:34; file is the default, lines keeps only leads on changed lines). docs/ci.md and docs/mcp.md document it.

Impact

A user who copies a scan flag into bench or debug because the docs say it is accepted gets exit code 2.

Getting started

  • Relevant files: docs/config.md, internal/cli/flags.go, internal/cli/bench.go:32, internal/cli/debug.go:24
  • Check: go run ./cmd/spackle debug --help and bench --help list the accepted flags

Filed by repo-audit/docs-audit at 82a8ded. Severity: medium. Effort: S. audit-key: documentation|docs/config.md|per-command-flags

Activity

  1. added
    documentation
    good first issue
    severity: medium
    on Nov 28, 2026
  2. TMHSDigital commented on Nov 28, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in f3048c8: config.md now names the scan-only flags and lists what bench, debug and baseline take, checked against each command's --help, and describes --diff-scope next to --since, --changed and --staged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issueseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions