chmln / sd

Intuitive find & replace CLI (sed alternative)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passing the preview flag when inputing from stdin doesn't make sense

dev-ardi opened this issue · comments

It should either fail completely or send a warning to stderr at least

What do you mean by "passing the preview flag when outputing to stdout"? If I understand correctly, it's the flag that makes sd output to stdout, right?

Oops, I meant inputing from stdin. as in sd find replace --preview

$ sd --preview a x
ardi
^D
xrdi

as it's redundant