1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Check hasArgumentError in milkycli
Author: James Cowgill <jcowgill@debian.org>
Bug: https://github.com/milkytracker/MilkyTracker/pull/388
Last-Update: 2025-08-10
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/tools/milkycli/milkycli.cpp
+++ b/src/tools/milkycli/milkycli.cpp
@@ -6,7 +6,7 @@ int main(int argc, const char* argv[])
static CLIParser parser(argc, argv);
auto exporter = WAVExporter::createFromParser(parser);
- if (exporter->hasParseError()) {
+ if (exporter->hasParseError() || exporter->hasArgumentError()) {
parser.printUsage();
fprintf(stderr, "Error: %s\n", exporter->getErrorMessage());
return 1;
|