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;
