]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
wimextract: allow specifying listfile on stdin
[wimlib] / programs / imagex.c
index e69d74fd91a6ab8879825cc19d3f08c752c1abd6..ea0815a60e8e06aa35a52d105134936c737fb3f3 100644 (file)
@@ -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++;
                }