Ignore the -X option for check_disk (on Windows)

fixes #8405
This commit is contained in:
Gunnar Beutner 2015-02-10 09:32:14 +01:00
parent b83e207eb7
commit 0913a96460
1 changed files with 10 additions and 2 deletions

View File

@ -112,9 +112,17 @@ int parseArguments(int ac, wchar_t **av, po::variables_map& vm, printInfoStruct&
po::basic_command_line_parser<wchar_t> parser(ac, av);
try {
po::options_description allDesc;
allDesc.add(desc);
allDesc.add_options()
("exclude-type,X", po::wvalue<vector<std::wstring>>()->multitoken(), "exclude partition types (ignored)")
("megabytes,m", "use megabytes")
;
po::store(
parser
.options(desc)
.options(allDesc)
.style(
po::command_line_style::unix_style |
po::command_line_style::allow_long_disguise)
@ -374,4 +382,4 @@ bool getFreeAndCap(drive& drive, const Bunit& unit)
wcout << L"\tAfter conversion: " << drive.free << endl << endl;
return TRUE;
}
}