equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 |
21 |
22 /* |
22 /* |
23 * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. |
24 */ |
24 */ |
25 |
25 |
26 package org.opensolaris.os.vp.util.cli; |
26 package org.opensolaris.os.vp.util.cli; |
27 |
27 |
28 import java.util.*; |
28 import java.util.*; |
115 String indent1 = usageLabel; |
115 String indent1 = usageLabel; |
116 String indent2 = whitespace + |
116 String indent2 = whitespace + |
117 String.format("%" + getIndent() + "s", ""); |
117 String.format("%" + getIndent() + "s", ""); |
118 int width = getWidth(); |
118 int width = getWidth(); |
119 |
119 |
120 StringBuffer buffer = new StringBuffer(); |
120 StringBuilder buffer = new StringBuilder(); |
121 for (int i = 0, n = options.size(); i < n; i++) { |
121 for (int i = 0, n = options.size(); i < n; i++) { |
122 Option o = options.get(i); |
122 Option o = options.get(i); |
123 if (o.isDocumented()) { |
123 if (o.isDocumented()) { |
124 String synopsis = command + " " + |
124 String synopsis = command + " " + |
125 formatter.getFormatted(o, false); |
125 formatter.getFormatted(o, false); |