From: Eric Biggers Date: Sat, 7 Jun 2014 21:54:33 +0000 (-0500) Subject: wimextract: Suggest --nullglob X-Git-Tag: v1.7.0~59 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=16083158d29fccc5a7da7970cede3c068aa6db4d;hp=a62cf4693203bb9e770865d6534a83e6fa09fa49 wimextract: Suggest --nullglob --- diff --git a/programs/imagex.c b/programs/imagex.c index 1f8018a3..1a840704 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -3002,6 +3002,15 @@ imagex_extract(int argc, tchar **argv, int cmd) if (!imagex_be_quiet) imagex_printf(T("Done extracting files.\n")); } else if (ret == WIMLIB_ERR_PATH_DOES_NOT_EXIST) { + if ((extract_flags & (WIMLIB_EXTRACT_FLAG_STRICT_GLOB | + WIMLIB_EXTRACT_FLAG_GLOB_PATHS)) + == (WIMLIB_EXTRACT_FLAG_STRICT_GLOB | + WIMLIB_EXTRACT_FLAG_GLOB_PATHS)) + { + tfprintf(stderr, + T("Note: You can use the '--nullglob' " + "option to ignore missing files.\n")); + } tfprintf(stderr, T("Note: You can use `%"TS"' to see what " "files and directories\n" " are in the WIM image.\n"),