ZeroCM / zcm

Zero Communications and Marshalling
http://zerocm.github.io/zcm/
GNU Lesser General Public License v2.1
233 stars 67 forks source link

ZCM tools should not exit 1 in response to "-h" #481

Open jhoellerbauer opened 3 months ago

jhoellerbauer commented 3 months ago

printing the help text and exiting is the proper response to -h. Therefore, it is an error to return a non-0 returncode. Why do all of the tools exit with -1 in response to requesting the help text?

jbendes commented 3 months ago

I think probably because it was easier to code haha. Feel free to change it!

xorvoid commented 3 months ago

Simply naïvety and inattention to detail which is common for a young programmer (yes.. shots fired.. at myself).

Just fix it if it's a problem for you.