File: 02-fix_usage_message.patch

package info (click to toggle)
ditaa 0.10%2Bds1-1.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,260 kB
  • sloc: java: 7,503; xml: 1,647; jsp: 164; makefile: 24
file content (44 lines) | stat: -rw-r--r-- 1,756 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From: David Paleino <dapal@debian.org>
Subject: fix usage message
Forwarded: no

---
 src/org/stathissideris/ascii2image/core/CommandLineConverter.java |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/src/org/stathissideris/ascii2image/core/CommandLineConverter.java
+++ b/src/org/stathissideris/ascii2image/core/CommandLineConverter.java
@@ -129,13 +129,13 @@ public class CommandLineConverter {
 			
 		} catch (org.apache.commons.cli.ParseException e) {
 			System.err.println(e.getMessage());
-			new HelpFormatter().printHelp("java -jar ditaa.jar <INPFILE> [OUTFILE]", cmdLnOptions, true);
+			new HelpFormatter().printHelp("ditaa <INPFILE> [OUTFILE]", cmdLnOptions, true);
 			System.exit(2);
 		}
 		
 		
 		if(cmdLine.hasOption("help") || args.length == 0 ){
-			new HelpFormatter().printHelp("java -jar ditaa.jar <INPFILE> [OUTFILE]", cmdLnOptions, true);
+			new HelpFormatter().printHelp("ditaa <INPFILE> [OUTFILE]", cmdLnOptions, true);
 			System.exit(0);			
 		}
 		
@@ -147,7 +147,7 @@ public class CommandLineConverter {
 			System.exit(2);
 		} catch (IllegalArgumentException e2) {
 			System.err.println("Error: " + e2.getMessage());
-			new HelpFormatter().printHelp("java -jar ditaa.jar <INPFILE> [OUTFILE]", cmdLnOptions, true);
+			new HelpFormatter().printHelp("ditaa <INPFILE> [OUTFILE]", cmdLnOptions, true);
 			System.exit(2);
 		}
 		
@@ -155,7 +155,7 @@ public class CommandLineConverter {
 		
 		if(args.length == 0) {
 			System.err.println("Error: Please provide the input file filename");
-			new HelpFormatter().printHelp("java -jar ditaa.jar <inpfile> [outfile]", cmdLnOptions, true);
+			new HelpFormatter().printHelp("ditaa <inpfile> [outfile]", cmdLnOptions, true);
 			System.exit(2);
 		}