Dushistov / sdcv

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

FR: do more with return values #16

Open Frenzie opened 7 years ago

Frenzie commented 7 years ago

For example, return exit code 1 when sdcv searchterm found no results or sdcv -l finds nothing

$ sdcv -l
Dictionary's name   Word count
$ sdcv -l>/dev/null && echo "dics" || echo "no dics"
dics
# but I'd expect "no dics"