From cf2275388b5eee4f3642fa36ade686f5cd44bfb1 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 8 May 2014 23:14:10 -0500 Subject: [PATCH] wimlib-imagex: Accept "max" as alias for "maximum" --- programs/imagex.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/imagex.c b/programs/imagex.c index bc16624a..0f800a84 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -479,7 +479,9 @@ verify_image_exists_and_is_single(int image, const tchar *image_name, static int get_compression_type(const tchar *optarg) { - if (!tstrcasecmp(optarg, T("maximum")) || !tstrcasecmp(optarg, T("lzx"))) + if (!tstrcasecmp(optarg, T("maximum")) || + !tstrcasecmp(optarg, T("lzx")) || + !tstrcasecmp(optarg, T("max"))) return WIMLIB_COMPRESSION_TYPE_LZX; else if (!tstrcasecmp(optarg, T("fast")) || !tstrcasecmp(optarg, T("xpress"))) return WIMLIB_COMPRESSION_TYPE_XPRESS; -- 2.43.0