CommandLineParser: throw on programmer error
authorPavel Rojtberg <pavel.rojtberg@igd.fraunhofer.de>
Tue, 22 Sep 2015 10:16:09 +0000 (12:16 +0200)
committerPavel Rojtberg <pavel.rojtberg@igd.fraunhofer.de>
Tue, 22 Sep 2015 16:35:49 +0000 (18:35 +0200)
commit2ced3ba27644b828f7f40dac77bf3ea75aedee0f
treeb470e2893e7217f9ac9881902d17a97cc3232db0
parentd430e802f2cdb4a144caaad45199f3c222b31f69
CommandLineParser: throw on programmer error

requesting a previously undeclared key is most likely an programming
error. e.g. a typo "--unused vs --unsued".
So throw in those cases.

Add an according failure testcase.
modules/core/src/command_line_parser.cpp
modules/core/test/test_utils.cpp