summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-15 09:38:39 +0100
committerskal <pascal.massimino@gmail.com>2026-02-15 09:38:39 +0100
commit786ace179b65d8bc187b8dec452da3e23ecf47fb (patch)
tree7ab44ed48f1119bb621c2101732e8a4677e6b0cf /src/app
parent24ebf83d69861d7e726d5836b198a307702f6d61 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.cc5
1 files changed, 4 insertions, 1 deletions
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