vasi / pixz

Parallel, indexed xz compressor
BSD 2-Clause "Simplified" License
711 stars 61 forks source link

option -V doesn't work #117

Closed Jun-T closed 5 months ago

Jun-T commented 5 months ago

'pixz -V' gives 'illegal option --V' instead of printing the version number.

In the following line: https://github.com/vasi/pixz/blob/eda054a382aff179f91a87c544fbed42633d997b/src/pixz.c#L77 the lower case 'v' in the optstring "dcxli:o:tkvhp:..." existed even before the commit 631c916068f6c14a006888427cc45e71bd2ca444 but has never been used? If 'v' is not used then just replace it with the upper ccase 'V'.

vasi commented 5 months ago

Ooh nice catch! We should fix this.

The lower-case -v actually works implicitly, it'll pick the default case and run usage(). I don't think it's technically necessary to include it in the option string for that though.

vasi commented 5 months ago

Fixed on master.