Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ type Config struct {
HTMLOutputFile string // set by --html (not persisted)
ColorMode string // "auto", "always", "never"
Verbose bool // --verbose
EnableNPMScan *bool // nil=auto, true/false=explicit
EnableBrewScan *bool // nil=auto, true/false=explicit
EnablePythonScan *bool // nil=auto, true/false=explicit
SearchDirs []string // defaults to ["$HOME"]
EnableNPMScan *bool // nil=auto, true/false=explicit
EnableBrewScan *bool // nil=auto, true/false=explicit
EnablePythonScan *bool // nil=auto, true/false=explicit
IncludeBundledPlugins bool // --include-bundled-plugins: include bundled/platform plugins in output
SearchDirs []string // defaults to ["$HOME"]
}

// Parse parses CLI arguments and returns a Config.
Expand Down Expand Up @@ -83,6 +84,8 @@ func Parse(args []string) (*Config, error) {
case arg == "--disable-python-scan":
v := false
cfg.EnablePythonScan = &v
case arg == "--include-bundled-plugins":
cfg.IncludeBundledPlugins = true
Comment on lines +87 to +88
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

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

The new --include-bundled-plugins flag is parsed, but it isn’t shown in printHelp() under Options. This makes the flag hard to discover and can lead to confusion when users run --help.

Copilot uses AI. Check for mistakes.
case strings.HasPrefix(arg, "--color="):
mode := strings.TrimPrefix(arg, "--color=")
if mode != "auto" && mode != "always" && mode != "never" {
Expand Down Expand Up @@ -145,9 +148,10 @@ Options:
--disable-npm-scan Disable Node.js package scanning
--enable-brew-scan Enable Homebrew package scanning
--disable-brew-scan Disable Homebrew package scanning
--enable-python-scan Enable Python package scanning
--disable-python-scan Disable Python package scanning
--verbose Show progress messages (suppressed by default)
--enable-python-scan Enable Python package scanning
--disable-python-scan Disable Python package scanning
--include-bundled-plugins Include bundled/platform plugins in output (Windows)
--verbose Show progress messages (suppressed by default)
--color=WHEN Color mode: auto | always | never (default: auto)
-v, --version Show version
-h, --help Show this help
Expand Down
Loading
Loading