summaryrefslogtreecommitdiff
path: root/libre/ditaa/ditaa-usage_message.patch
blob: 971493cbf1793c2a340813ad2106000add61c8da (plain)
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
--- ditaa.orig/src/org/stathissideris/ascii2image/core/CommandLineConverter.java	2016-12-04 23:55:12.415936000 -0500
+++ ditaa/src/org/stathissideris/ascii2image/core/CommandLineConverter.java	2016-12-05 00:05:44.390902762 -0500
@@ -129,13 +129,13 @@
 			
 		} 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 @@
 			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 @@
 		
 		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);
 		}