From a0876bbe3dde27c77f95971a2ed3ed5ae3b5d9fb Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 6 May 2026 08:08:05 -0700 Subject: [PATCH] fix(cli): error on non-GUI options that are missing their argument Previously '--info-wcp' (no path) silently dropped into the GUI because the option-parse loop's i+1= argc) { + std::fprintf(stderr, "%s requires an argument\n", opt); + return 1; + } + } + if (std::strcmp(argv[i], "--adt") == 0 && i + 3 >= argc) { + std::fprintf(stderr, "--adt requires \n"); + return 1; + } + } + for (int i = 1; i < argc; i++) { if (std::strcmp(argv[i], "--data") == 0 && i + 1 < argc) { dataPath = argv[++i];