Navigation Menu

Skip to content

Commit

Permalink
Add zlib version for verbose version option.
Browse files Browse the repository at this point in the history
The consistency of block sync markers depends on zlib 1.2.6 or
later. pigz -vV will display the zlib version linked with pigz.
  • Loading branch information
madler committed May 30, 2016
1 parent 374d167 commit e223c89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pigz.c
Expand Up @@ -3990,7 +3990,11 @@ local int option(char *arg)
case 'R': g.rsync = 1; break;
case 'S': get = 3; break;
case 'T': g.headis &= ~0xa; break;
case 'V': fputs(VERSION, stderr); exit(0);
case 'V':
fputs(VERSION, stderr);
if (g.verbosity > 1)
fprintf(stderr, "zlib %s\n", zlibVersion());
exit(0);
case 'Z':
throw(EINVAL, "invalid option: LZW output not supported: %s",
bad);
Expand Down

0 comments on commit e223c89

Please sign in to comment.