Skip to content

Reject empty values passed to --dep-root #649

Closed

Description

@LunaStev

Current evidence

src/cli.rs rejects an empty value in the --dep-root=<path> form, but the separate --dep-root <path> branch pushes the following argument directly into g.dep.roots without checking whether it is empty or whitespace-only.

The two spellings of the same option therefore have different validation behavior.

Scope

  • Apply the same non-empty validation to both --dep-root=<path> and --dep-root <path>.
  • Treat whitespace-only values as missing values.
  • Preserve valid relative and absolute dependency-root paths.
  • Do not add filesystem-existence requirements to this task.

Completion criteria

  • CLI tests cover empty and whitespace-only values for both option spellings.
  • Valid values continue to populate dependency roots unchanged.
  • Invalid values use the existing CLI usage-error path and message style.

Activity

  1. added
    bug
    good first issue
    on Sep 15, 2026
  2. self-assigned this
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions