Enable --with-devices and --with-specials when using --input-list

This commit is contained in:
Marcus Holland-Moritz 2022-11-08 12:45:02 +01:00
parent 43e5a3bcdc
commit 2f65559407
2 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,7 @@ There two mandatory options for specifying the input and output:
current directory. If you want files to be stored in the exact same order current directory. If you want files to be stored in the exact same order
as read from this list (because, for example, you have already sorted them as read from this list (because, for example, you have already sorted them
by similarity or access frequency), you must also pass `--order=none`. by similarity or access frequency), you must also pass `--order=none`.
This option implicitly enables both `--with-devices` and `--with-specials`.
- `-o`, `--output=`*file*: - `-o`, `--output=`*file*:
File name of the output filesystem. File name of the output filesystem.

View File

@ -654,6 +654,10 @@ int mkdwarfs(int argc, char** argv) {
return 1; return 1;
} }
// implicitly turn on
options.with_devices = true;
options.with_specials = true;
if (!vm.count("input")) { if (!vm.count("input")) {
path = std::filesystem::current_path().string(); path = std::filesystem::current_path().string();
} }