fix: Suppress spurious error output for --help (#1607) (#1608)

Signed-off-by: kei-g <km.8k6ce+github@gmail.com>
This commit is contained in:
YOSHIDA Keiji
2026-06-06 17:23:44 +09:00
committed by GitHub
parent 064001b524
commit 74f513d512
4 changed files with 41 additions and 5 deletions

View File

@@ -203,8 +203,9 @@ ArgOptions SDSvrParams::get_options() {
{"", "--color", "colors the logging tags according to level", true, &color},
};
auto on_help_arg = [&](int, const char**, int) {
auto on_help_arg = [&](int, const char**, int, bool& valid) {
normal_exit = true;
valid = true;
return -1;
};