X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=programs%2Fimagex.c;h=ea0815a60e8e06aa35a52d105134936c737fb3f3;hp=e69d74fd91a6ab8879825cc19d3f08c752c1abd6;hb=075e14ac8b227141bc68fec5486b0644dcab8013;hpb=2f19a7a4ccf0d1846739f19129dc9b37fd1e7735 diff --git a/programs/imagex.c b/programs/imagex.c index e69d74fd..ea0815a6 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -3308,9 +3308,15 @@ imagex_extract(int argc, tchar **argv, int cmd) argc -= num_paths; argv += num_paths; } else { + const tchar *listfile = argv[0] + 1; + + if (!tstrcmp(listfile, T("-"))) { + tputs(T("Reading pathlist file from standard input...")); + listfile = NULL; + } + ret = wimlib_extract_pathlist(wim, image, dest_dir, - argv[0] + 1, - extract_flags); + listfile, extract_flags); argc--; argv++; }