equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 |
21 |
22 /* |
22 /* |
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. |
24 * Use is subject to license terms. |
|
25 */ |
24 */ |
26 |
25 |
27 package org.opensolaris.os.vp.util.cli; |
26 package org.opensolaris.os.vp.util.cli; |
28 |
27 |
29 import java.util.ArrayList; |
28 import java.util.ArrayList; |
70 // |
69 // |
71 |
70 |
72 private String getFormatted(Option opt, boolean allNames, |
71 private String getFormatted(Option opt, boolean allNames, |
73 boolean showGroup, boolean required) { |
72 boolean showGroup, boolean required) { |
74 |
73 |
75 StringBuffer buffer = new StringBuffer(); |
74 StringBuilder buffer = new StringBuilder(); |
76 |
75 |
77 if (!required) { |
76 if (!required) { |
78 buffer.append(OPT_REQUIRED_ENCLOSE_LEFT); |
77 buffer.append(OPT_REQUIRED_ENCLOSE_LEFT); |
79 showGroup = false; |
78 showGroup = false; |
80 } |
79 } |