mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
parent
b83e207eb7
commit
0913a96460
@ -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);
|
po::basic_command_line_parser<wchar_t> parser(ac, av);
|
||||||
|
|
||||||
try {
|
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(
|
po::store(
|
||||||
parser
|
parser
|
||||||
.options(desc)
|
.options(allDesc)
|
||||||
.style(
|
.style(
|
||||||
po::command_line_style::unix_style |
|
po::command_line_style::unix_style |
|
||||||
po::command_line_style::allow_long_disguise)
|
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;
|
wcout << L"\tAfter conversion: " << drive.free << endl << endl;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user