cargo completion make `--` argument not working.
Open
Nobody has claimed this yet.
- Dominant language
- Nushell
- Stars
- 1.3k
- Forks
- 323
- Avg merge
- 2h 55m
- Merged PRs (30d)
- 3
Description
cargo clippy --workspace -- -D warnings -D clippy::unwrap_used
will produced like:
error: unexpected argument '-' found
Usage: cargo.exe check [OPTIONS]
cargo test -- --nocapture
will produced like:
error: unexpected argument '--nocapture' found
tip: a similar argument exists: '--features'
tip: to pass '--nocapture' as a value, use '-- --nocapture'
Usage: cargo.exe test --features <FEATURES> <TESTNAME> [-- [ARGS]...]
For more information, try '--help'.
I must do the work like ^cargo test -- --nocapture , How can I fix this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported commands, cargo clippy --workspace -- -D warnings -D clippy::unwrap_used and cargo test -- --nocapture, through the affected completion. Trace how arguments after -- are emitted, then verify that the completed commands preserve the separator and pass the remaining arguments through unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100