tapi examples - Removing defaults from all command line switches accessed with has()
This commit is contained in:
@@ -83,12 +83,12 @@ static void getFlowField(const Mat& u, const Mat& v, Mat& flowField)
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
const char* keys =
|
||||
"{ h help | false | print help message }"
|
||||
"{ h help | | print help message }"
|
||||
"{ l left | | specify left image }"
|
||||
"{ r right | | specify right image }"
|
||||
"{ o output | tvl1_output.jpg | specify output save path }"
|
||||
"{ c camera | 0 | enable camera capturing }"
|
||||
"{ m cpu_mode | false | run without OpenCL }"
|
||||
"{ m cpu_mode | | run without OpenCL }"
|
||||
"{ v video | | use video as input }";
|
||||
|
||||
CommandLineParser cmd(argc, argv, keys);
|
||||
|
||||
Reference in New Issue
Block a user