You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
rtk wget misidentifies '-O -' flag as a URL and prepends 'http://'; fix is in progress via PR #793.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
Triaged automatically by wshm · This is an automated analysis, not a human review.
This is fixed on develop: rtk wget https://example.com -O - now passes -O - through to wget and prints the body to stdout instead of treating - as a URL. Please reopen or comment if you still hit it on the latest version.
Activity
pszymkowiak commentedon Mar 20, 2026
🔍 Automated Triage
buglowSummary
rtk wget misidentifies '-O -' flag as a URL and prepends 'http://'; fix is in progress via PR #793.
Triaged automatically by wshm · This is an automated analysis, not a human review.
fix(wget): detect -O - in trailing args absorbed by Clap
fix(wget): detect -O - in trailing args absorbed by Clap
KuSh commentedon Sep 5, 2026
This is fixed on develop:
rtk wget https://example.com -O -now passes-O -through to wget and prints the body to stdout instead of treating-as a URL. Please reopen or comment if you still hit it on the latest version.