tenox7 / ttyplot

a realtime plotting utility for terminal/console with data input from stdin
Apache License 2.0
957 stars 42 forks source link

Release a new version and support -v option? #88

Closed MIvanchev closed 8 months ago

MIvanchev commented 9 months ago

I just noticed 1.4 is from 2019 and a lot of features have been implemented since then. Maybe release 1.5 soon? :) Would be also cool if there was a -v option to print out the version and exit immediately. I could provide a MR for this.

tenox7 commented 9 months ago

Yeah I should do it...

tenox7 commented 9 months ago

ok please send a pr/mr for -v and then I'll release

MIvanchev commented 8 months ago

MR also adds -h parameter and changes exit code to 1 for the error case (unrecognized option). This is consistent with other *nix tools. -h has priority over -v. An initial loop checks for -h, -v or unrecognized option to avoid setting up stuff if there's no need.