rtk-ai/rtk

bug: rtk wget interprets -O - flag as URL

Ouverte

#716 ouverte le 19 mars 2026

 (1 commentaire) (0 réaction) (0 personne assignée)Rust (2 914 forks)batch import
area:clibugeffort-smallfilter-qualitygood first issuepriority:low

Métriques du dépôt

Stars
 (48 085 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur