fixed return value when invoking software with help flag

This commit is contained in:
Phuntsok Drak-pa 2019-04-13 14:48:21 +02:00
부모 85cfe3c975
커밋 bc94bb76c6
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -19,5 +19,4 @@ int main(int ac, char** av)
ImageManipulator image_process{input_file, output_file, iterations};
image_process.exec_method(method, controlled_size);
image_process.write_file();
return 0;
}

파일 보기

@ -43,7 +43,7 @@ void processFilenames(po::variables_map const& vm,
po::notify(vm);
if (vm.count("help") || !vm.count("input")) {
std::cout << desc << "\n";
std::exit(1);
std::exit(!vm.count("help"));
}
auto const input_path = vm["input"].as<path>();