aitjcize / cppman

C++ 98/11/14 manual pages for Linux/MacOS
GNU General Public License v3.0
1.27k stars 79 forks source link

feature request: use exit code to indicate if man page was found or not #93

Closed tllilleh closed 5 years ago

tllilleh commented 5 years ago

I would like to be able to call cppman in a script and if no man page was found fallback to something else (like man). However, it appears as though cppman always has an exit code of 0. It would be nice to return an error if no man page was found.

SGSSGene commented 5 years ago

This is a great idea, I made the PR #94 to add this feature.

aitjcize commented 5 years ago

merged, thanks @SGSSGene !