Skip to content

Commit

Permalink
Ignore the -X option for check_disk (on Windows)
Browse files Browse the repository at this point in the history
fixes #8405
  • Loading branch information
gunnarbeutner committed Feb 10, 2015
1 parent b83e207 commit 0913a96
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions plugins/check_disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -374,4 +382,4 @@ bool getFreeAndCap(drive& drive, const Bunit& unit)
wcout << L"\tAfter conversion: " << drive.free << endl << endl;

return TRUE;
}
}

0 comments on commit 0913a96

Please sign in to comment.