File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ static void usage(const char *msg) {
44
44
" -t Don't assume input is in tar format\n"
45
45
" -k Keep original input (do not remove it)\n"
46
46
" -c ignored\n"
47
+ " -V Print version and exit\n"
47
48
" -h Print this help\n"
48
49
"\n"
49
50
"pixz %s\n"
@@ -56,6 +57,11 @@ static void usage(const char *msg) {
56
57
exit (0 );
57
58
}
58
59
60
+ static void version () {
61
+ fprintf (stderr , "pixz %s\n" , PACKAGE_VERSION );
62
+ exit (0 );
63
+ }
64
+
59
65
int main (int argc , char * * argv ) {
60
66
uint32_t level = LZMA_PRESET_DEFAULT ;
61
67
bool tar = true;
@@ -80,6 +86,7 @@ int main(int argc, char **argv) {
80
86
case 'k' : keep_input = true; break ;
81
87
case 'h' : usage (NULL ); break ;
82
88
case 'e' : extreme = true; break ;
89
+ case 'V' : version (); break ;
83
90
case 'f' :
84
91
optdbl = strtod (optarg , & optend );
85
92
if (* optend || optdbl <= 0 )
You can’t perform that action at this time.
0 commit comments