ff6347/to-markdown-cli

Should the -c --clipboard option be the default?

Closed this issue · 3 comments

Should the -c --clipboard option be the default?

It surprised me that the tool didn't take stdin when I piped in a curl to a web page.

I'd say, if there's some way to detect it, if the tool is getting something from STDIN, then STDIN should be used. -c option would override to clipboard.

If the user isn't piping anything and but they have something on their clipboard, then sure, the clipboard could be the default/fallback in that scenario.

But yeah, just popping in to say that not accepting STDIN was a bit of a shock.

Yeah. It should. Maybe I find some time in the next days. PRs welcome

Accepts STDIN now v0.4.1