]> Kevux Git Server - fll/commit
Bugfix: Short console arguments should not match when a single invalid exists.
authorKevin Day <kevin@kevux.org>
Mon, 23 Jan 2023 02:58:07 +0000 (20:58 -0600)
committerKevin Day <kevin@kevux.org>
Mon, 23 Jan 2023 04:08:31 +0000 (22:08 -0600)
commitccd15d4e64848f29d36823ca92ee639057f544b7
tree03093e5861fd58f30fbcafb960588d09d796a9f2
parenta7be894ec4b61c3904d0e60adcb79360a81e20da
Bugfix: Short console arguments should not match when a single invalid exists.

While convenient, "fake -help" should not print help.
This is because there is no short command starting with the letters "e" or "l".

This behavior of succeeded is confusing and misleading.

Redesign the logic to better handle this.

Improve the unit tests to catch more cases, including this one.
level_0/f_console/c/console.c
level_0/f_console/c/console.h
level_0/f_console/tests/unit/c/test-console-parameter_process.c
level_0/f_console/tests/unit/c/test-console-parameter_process.h
level_0/f_console/tests/unit/c/test-console.c