Package: ditaa / 0.9+ds1-3

02-fix_usage_message.patch Patch series | download
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
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(-)

--- ditaa.orig/src/org/stathissideris/ascii2image/core/CommandLineConverter.java
+++ ditaa/src/org/stathissideris/ascii2image/core/CommandLineConverter.java
@@ -120,13 +120,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);			
 		}
 						
@@ -142,7 +142,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);
 		}