Skip to content

fix(staleness): command does not accept positional workspace argument #178

Description

@Wolfvin

Bug

staleness does not accept a workspace path as a positional argument, unlike every other command. Passing a path causes it to print usage and exit.

codelens staleness /path/to/workspace
# → prints usage, exits — workspace arg not recognized

Other commands accept workspace as an optional positional: codelens trace <name> [workspace], codelens scan [workspace], etc. staleness is inconsistent.

Fix

Add workspace as an optional positional argument to staleness in commands/staleness.py, consistent with the pattern used by all other commands. Pass it through to the registry/DB path resolution so auto-detect is skipped when workspace is explicit.

Definition of Done

  • codelens staleness /path/to/workspace works without error
  • codelens staleness (no args) still auto-detects as before
  • Consistent with how other commands handle the optional workspace positional

Labels

type: bug-fix exec: parallel

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bug-fixRegression or broken behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions