Skip to content

Support JSON output for --help flags #1265

Description

@sentry-junior

sentry help --json returns structured help, but the same JSON view does not work with the more common --help forms agents reach for, such as sentry --help --json and sentry issue --help --json.

Current behavior

  • sentry help --json works
  • sentry --help --json and sentry <command> --help --json do not produce the same JSON help
  • Help is split across two UX paths: dedicated sentry help <command...> vs flag-based --help

Gap

  • Agents and tooling commonly try --help first
  • JSON help is already useful for discovery/tooling, but only on the dedicated help command path

Reported by Jan Peer Stöcklmair.

Requested by Burak Yigit Kaya via Junior.

--

View Junior Session in Sentry

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions