diff options
author | Martin Ritchie <ritchiem@apache.org> | 2010-04-14 16:15:45 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2010-04-14 16:15:45 +0000 |
commit | 8f1329cea15019c3ffe4a07c7456942ce92f95ed (patch) | |
tree | f11153d3f4fb669c93fda8ff7fd368502ac7ae90 | |
parent | a7f0c4d48ded9eb951a837716db8cf82e4561d24 (diff) | |
download | qpid-python-8f1329cea15019c3ffe4a07c7456942ce92f95ed.tar.gz |
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
-rw-r--r-- | qpid/java/common/src/main/java/org/apache/qpid/util/CommandLineParser.java | 6 |
1 files changed, 3 insertions, 3 deletions
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"); } } } |