npat-efault / picocom

Minimal dumb-terminal emulation program
GNU General Public License v2.0
631 stars 125 forks source link

Typo in --exit-after option error message #135

Open orpheeantoniadis opened 1 year ago

orpheeantoniadis commented 1 year ago

Hi ! I noticed a little typo in the --exit-after error message (Inavild instead of Invalid) :

https://github.com/npat-efault/picocom/blob/1acf1ddabaf3576b4023c4f6f09c5a3e4b086fb8/picocom.c#L1901

In addition to that it would be great to show the max possible value of this option which is 2^31 - 1 (long int). In the man page or in the error message.

Thank you for your work and have a great day !

wsakernel commented 1 year ago

Thank you for the report. It is already fixed in my codebase: https://github.com/wsakernel/picocom/commit/048f5b65aaafb985149c205f544d1db792995bb6

I will think about the max value.