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

@@ -169,8 +169,9 @@ struct SDCliParams {
return 1;
};
auto on_help_arg = [&](int argc, const char** argv, int index) {
auto on_help_arg = [&](int argc, const char** argv, int index, bool& valid) {
normal_exit = true;
valid = true;
return -1;
};