mirror of https://github.com/apache/jmeter.git
Better representation of TEXT options
git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-2@539546 13f79535-47bb-0310-9956-ffa450edef68
Former-commit-id: 7870b1745a
This commit is contained in:
parent
f21d6b025f
commit
33708f2119
|
|
@ -132,11 +132,12 @@ public final class CLOption {
|
|||
*/
|
||||
public final String toString() {
|
||||
final StringBuffer sb = new StringBuffer();
|
||||
sb.append("[Option ");
|
||||
sb.append("[");
|
||||
final char id = (char) m_descriptor.getId();
|
||||
if (id == 0) {
|
||||
sb.append("-");
|
||||
if (id == TEXT_ARGUMENT) {
|
||||
sb.append("TEXT ");
|
||||
} else {
|
||||
sb.append("Option ");
|
||||
sb.append(id);
|
||||
}
|
||||
|
||||
|
|
@ -157,16 +158,16 @@ public final class CLOption {
|
|||
*/
|
||||
final String toShortString() {
|
||||
final StringBuffer sb = new StringBuffer();
|
||||
sb.append("-");
|
||||
final char id = (char) m_descriptor.getId();
|
||||
if (id == 0) {
|
||||
if (id != TEXT_ARGUMENT) {
|
||||
sb.append("-");
|
||||
} else {
|
||||
sb.append(id);
|
||||
}
|
||||
|
||||
if (null != m_arguments) {
|
||||
sb.append("=");
|
||||
if (id != TEXT_ARGUMENT) {
|
||||
sb.append("=");
|
||||
}
|
||||
sb.append(Arrays.asList(m_arguments));
|
||||
}
|
||||
return sb.toString();
|
||||
|
|
|
|||
Loading…
Reference in New Issue