Dushistov / sdcv

https://dushistov.github.io/sdcv/
GNU General Public License v2.0
294 stars 42 forks source link

Print "save to cache" and "Nothing similar to" to stderr, not stdout #21

Closed ecraven closed 7 years ago

ecraven commented 7 years ago

see #6

Dushistov commented 7 years ago

I don't think that moving output of Nothing similar to to stderr is right choice.

For users who use sdcv in interactive mode at least. Look for example how man utility works, it prints No manual entry for to stdout, not stderr. Because if in opposite case user who use less/more to paginate output see nothing, untill he exit from more/less.

If you want add json API to sdcv I think better approach is introducing some kind of mode for it, and disable this output and not redirect it to stderr.

ecraven commented 7 years ago

Good point, thanks for the ideas, I've integrated them into #22.