rtk-ai/rtk

bug: rtk wget interprets -O - flag as URL

Open

#716 建立於 2026年3月19日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Rust (2,914 fork)batch import
area:clibugeffort-smallfilter-qualitygood first issuepriority:low

倉庫指標

Star
 (48,085 star)
PR 合併指標
 (平均合併 11天 1小時) (30 天內合併 45 個 PR)

描述

Problem

rtk wget https://example.com -O - fails with:

example.com FAILED: Prepended http:// to '-'

RTK treats - (stdout redirect) as a URL and prepends http:// to it.

Expected

Should pass -O - through to wget as a flag, not interpret it as a second URL.

Workaround

rtk wget https://example.com works (without -O -).

Found during

LLM comprehension testing on 57 RTK commands — this was the only command that failed.

貢獻者指南