From 8f1329cea15019c3ffe4a07c7456942ce92f95ed Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Wed, 14 Apr 2010 16:15:45 +0000 Subject: QPID-2503 : Updated CommandLineParser to output '-' in front of options. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@934005 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/qpid/util/CommandLineParser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qpid/java') diff --git a/qpid/java/common/src/main/java/org/apache/qpid/util/CommandLineParser.java b/qpid/java/common/src/main/java/org/apache/qpid/util/CommandLineParser.java index baa68f87f9..0281506037 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/util/CommandLineParser.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/util/CommandLineParser.java @@ -208,7 +208,7 @@ public class CommandLineParser for (CommandLineOption optionInfo : optionMap.values()) { result += - optionInfo.option + " " + ((optionInfo.argument != null) ? (optionInfo.argument + " ") : "") + "-" + optionInfo.option + " " + ((optionInfo.argument != null) ? (optionInfo.argument + " ") : "") + optionInfo.comment + "\n"; } @@ -463,7 +463,7 @@ public class CommandLineParser else if (optionInfo.mandatory && !options.containsKey(optionInfo.option)) { // Create an error for the missing option. - parsingErrors.add("Option " + optionInfo.option + " is mandatory but not was not specified.\n"); + parsingErrors.add("Option -" + optionInfo.option + " is mandatory but not was not specified.\n"); } } @@ -597,7 +597,7 @@ public class CommandLineParser if (!argumentMatcher.matches()) { // Create an error for this badly formed argument. - parsingErrors.add("The argument to option " + optionInfo.option + " does not meet its required format.\n"); + parsingErrors.add("The argument to option -" + optionInfo.option + " does not meet its required format.\n"); } } } -- cgit v1.2.1