mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-10 12:58:30 -04:00
gzip, gunzip: accept -n option
This commit is contained in:
parent
5cc0fc2bbd
commit
8be0bbfabb
@ -47,7 +47,7 @@ struct options {
|
|||||||
const tchar *suffix;
|
const tchar *suffix;
|
||||||
};
|
};
|
||||||
|
|
||||||
static const tchar *const optstring = T("1::2::3::4::5::6::7::8::9::cdfhkS:V");
|
static const tchar *const optstring = T("1::2::3::4::5::6::7::8::9::cdfhknS:V");
|
||||||
|
|
||||||
static void
|
static void
|
||||||
show_usage(FILE *fp)
|
show_usage(FILE *fp)
|
||||||
@ -530,6 +530,14 @@ tmain(int argc, tchar *argv[])
|
|||||||
case 'k':
|
case 'k':
|
||||||
options.keep = true;
|
options.keep = true;
|
||||||
break;
|
break;
|
||||||
|
case 'n':
|
||||||
|
/*
|
||||||
|
* -n means don't save or restore the original filename
|
||||||
|
* in the gzip header. Currently this implementation
|
||||||
|
* already behaves this way by default, so accept the
|
||||||
|
* option as a no-op.
|
||||||
|
*/
|
||||||
|
break;
|
||||||
case 'S':
|
case 'S':
|
||||||
options.suffix = toptarg;
|
options.suffix = toptarg;
|
||||||
if (options.suffix[0] == T('\0')) {
|
if (options.suffix[0] == T('\0')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user