Skip to content

Close the --force flag-verb bypass #303

Description

@blooop

Question

dl --force <ws> --rm force-deletes: verb_command reads cli.force with no positional check (rust/dl/src/cli.rs:756) while workspace_command consults force_placement (cli.rs:847-882) and refuses the same misparse for the word verbs. The guard's own rationale ("clap-parsed Rust silently accepted the flag and deleted") applies identically to both spellings.

Route verb_command through the same placement check, red-first: failing grammar tests for dl --force <ws> --rm and dl --rm --force <ws> (must refuse and delete nothing), while dl <ws> --rm --force keeps working.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions