cargo completion make `--` argument not working.

未關閉
#1,004 3 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
30/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
rust
領域
cli

研究方向

首先,透過受影響的補全重現回報的命令:cargo clippy --workspace -- -D warnings -D clippy::unwrap_used 和 cargo test -- --nocapture。追蹤 -- 後的引數如何輸出,然後驗證補全後的命令保留分隔符,並將其餘引數原樣傳遞。

由索引模型根據 Issue 內容生成。

描述

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?

主要語言
Nushell
星號
1.3k
分支
329
平均合併
6 小時 26 分鐘
30 天內合併 PR
21

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nushell/nu_scripts 的其他 Issue

查看 nushell/nu_scripts 的全部 Issue

相似的 Issue

更多 CLI Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。