From 786ace179b65d8bc187b8dec452da3e23ecf47fb Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 15 Feb 2026 09:38:39 +0100 Subject: fix(cli): change --dump_wav to --dump-wav and add error handling - Update CLI parser to use --dump-wav (consistent with other options) - Add error message and exit for unrecognized options - Update documentation: HEADLESS_MODE.md, COMPLETED.md, FINAL_STRIP_REPORT.md Co-Authored-By: Claude Sonnet 4.5 --- src/app/main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/app') diff --git a/src/app/main.cc b/src/app/main.cc index 27d6312..e19f05b 100644 --- a/src/app/main.cc +++ b/src/app/main.cc @@ -67,7 +67,7 @@ int main(int argc, char** argv) { } } else if (strcmp(argv[i], "--debug") == 0) { Renderer3D::SetDebugEnabled(true); - } else if (strcmp(argv[i], "--dump_wav") == 0) { + } else if (strcmp(argv[i], "--dump-wav") == 0) { dump_wav = true; // Optional: allow specifying output filename if (i + 1 < argc && argv[i + 1][0] != '-') { @@ -85,6 +85,9 @@ int main(int argc, char** argv) { } else if (strcmp(argv[i], "--hot-reload") == 0) { hot_reload_enabled = true; printf("Hot-reload enabled (watching config files)\n"); + } else { + fprintf(stderr, "Error: Unrecognized option '%s'\n", argv[i]); + return 1; } } #else -- cgit v1.2.3