commit 37f28959e7aaec2e4e82ad2226d07cbc85511a74 parent 09097c76d0e209832d28158eb51042c60d271b81 Author: Morel BĂ©renger <berengermorel76@gmail.com> Date: Fri, 18 Dec 2020 12:32:28 +0100 btl: optparser.cpp: fix SET_NO_VAL incorrectly returned Diffstat:
M | btl/src/optparser.cpp | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/btl/src/optparser.cpp b/btl/src/optparser.cpp @@ -99,7 +99,7 @@ parse_error_t parse_cmd_opt( char const* arg, opt_desc_t* start, opt_desc_t cons return IGNORED; } - if( opt->value && !empty_array( argv ) ) + if( opt->value && empty_array( argv ) ) { return SET_NO_VAL; }