File: 03_milkycli-parse-error.patch

package info (click to toggle)
milkytracker 1.06%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,520 kB
  • sloc: cpp: 179,746; objc: 557; sh: 97; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 677 bytes parent folder | download
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;