Skip to content

Added Enriched --help output#75

Merged
ParzivalHack merged 1 commit into
ParzivalHack:mainfrom
Jokasan:feat/enriched-help-output
Jun 6, 2026
Merged

Added Enriched --help output#75
ParzivalHack merged 1 commit into
ParzivalHack:mainfrom
Jokasan:feat/enriched-help-output

Conversation

@Jokasan

@Jokasan Jokasan commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Closes #74

Added the key scan/watch options (--ai, --severity, --format,
--config, --output, --url, --supply-chain, --stats, --debug,
--wizard) directly to the root CLI group so they appear under Options:
in the top-level help output.

Values set at the group level are propagated to scan and watch as
defaults via ctx.default_map, so both invocation styles work
identically:

pyspector --ai scan path/
pyspector scan --ai path/ # unchanged, still works

Copilot AI review requested due to automatic review settings June 6, 2026 10:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds global CLI options to configure scans and wires those values into subcommand defaults via Click’s ctx.default_map.

Changes:

  • Introduces global flags/options on the root cli group (AI ruleset, severity, format, config/output paths, repo URL, supply-chain, stats, debug, wizard).
  • Populates ctx.default_map for scan and watch subcommands using the root option values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/pyspector/cli.py
Comment thread src/pyspector/cli.py
Comment thread src/pyspector/cli.py
Comment thread src/pyspector/cli.py

@ParzivalHack ParzivalHack left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect PR @Jokasan, exactly what i said i wanted in Issue #74. Merging :))

@ParzivalHack ParzivalHack added the enhancement New feature or request label Jun 6, 2026
@ParzivalHack ParzivalHack merged commit a0933ac into ParzivalHack:main Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Good First Issue: Further enrich the --help output

3 participants