Validate conflicting short flags in command signatures
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem
A handwritten command signature can define the same short flag for multiple options within one command. This produces ambiguous generated shell completions because the completion engine cannot determine which option the short flag represents.
Desired behavior
Validate command-signature option definitions and report a clear error when two options on the same command use the same short flag.
Acceptance criteria
- Detect duplicate short flags within a single handwritten command signature.
- Identify the affected command, short flag, and conflicting options in the validation error.
- Allow the same short flag on unrelated commands or subcommands.
- Add focused valid and invalid fixture coverage.
- Run the check through the repository’s existing validation or presubmit path.
Scope
This concerns command-completion signature correctness only; it does not require Warp application UI changes.
@warp-factory Please triage and route this issue using the deployed ownership source.
- Ngôn ngữ chính
- Rust
- Star
- 6
- Fork
- 13
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của warpdotdev/command-signatures
-
enhancement good first issue repro:high triaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
warpdotdev/command-signatures#372 · 1 bình luận ·
-
SSH host completion drops hosts when ~/.ssh/config uses a Windows drive-letter `Include` pathCó thể đã có người làm @SkyNotSilent đã nhận 122 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
warpdotdev/command-signatures#282 · 1 bình luận ·
-
testing heyĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
warpdotdev/command-signatures#421 · 1 bình luận ·
-
Testing againĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
warpdotdev/command-signatures#420 · 1 bình luận ·
-
testĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
warpdotdev/command-signatures#419 ·
Tất cả issue của warpdotdev/command-signatures
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
foxglove/mcap#1907 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted r-feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
servo/rust-smallvec#792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày