You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@commons.apache.org by br...@apache.org on 2015/05/09 20:19:17 UTC
svn commit: r950741 [27/40] - in
/websites/production/commons/content/proper/commons-cli: ./ apidocs/
apidocs/org/apache/commons/cli/ apidocs/org/apache/commons/cli/class-use/
apidocs/resources/ apidocs/src-html/org/apache/commons/cli/ cobertura/
jacoc...
Added: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/HelpFormatter.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/HelpFormatter.html (added)
+++ websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/HelpFormatter.html Sat May 9 18:19:15 2015
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../.resources/report.gif" type="image/gif"/><title>HelpFormatter</title><script type="text/javascript" src="../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CLI</a> > <a href="index.html" class="el_package">org.apache.commons.cli</a> > <span class="el_class">HelpFormatter</span></div><h1>HelpFormatter</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortab
le" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">46 of 948</td><td class="ctr2">95%</td><td class="bar">9 of 122</td><td class="ctr2">93%</td><td class="ctr1">13</td><td class="ctr2">103</td><td class="ctr1">11</t
d><td class="ctr2">213</td><td class="ctr1">4</td><td class="ctr2">42</td></tr></tfoot><tbody><tr><td id="a20"><a href="HelpFormatter.java.html#L423" class="el_method">printHelp(String, Options, boolean)</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="5" height="10" title="10" alt="10"/></td><td class="ctr2" id="c38">0%</td><td class="bar" id="d9"/><td class="ctr2" id="e9">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g9">1</td><td class="ctr1" id="h0">2</td><td class="ctr2" id="i15">2</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a22"><a href="HelpFormatter.java.html#L455" class="el_method">printHelp(String, String, Options, String, boolean)</a></td><td class="bar" id="b1"><img src="../.resources/redbar.gif" width="5" height="10" title="10" alt="10"/></td><td class="ctr2" id="c39">0%</td><td class="bar" id="d10"/><td class="ctr2" id="e10">n/a</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g10">1<
/td><td class="ctr1" id="h1">2</td><td class="ctr2" id="i16">2</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a15"><a href="HelpFormatter.java.html#L471" class="el_method">printHelp(int, String, String, Options, String)</a></td><td class="bar" id="b2"><img src="../.resources/redbar.gif" width="5" height="10" title="9" alt="9"/></td><td class="ctr2" id="c40">0%</td><td class="bar" id="d11"/><td class="ctr2" id="e11">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g11">1</td><td class="ctr1" id="h2">2</td><td class="ctr2" id="i17">2</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a21"><a href="HelpFormatter.java.html#L438" class="el_method">printHelp(String, String, Options, String)</a></td><td class="bar" id="b3"><img src="../.resources/redbar.gif" width="4" height="10" title="8" alt="8"/></td><td class="ctr2" id="c41">0%</td><td class="bar" id="d12"/><td class="ctr2" id="e12">n/a</td><td class="ctr1"
id="f5">1</td><td class="ctr2" id="g12">1</td><td class="ctr1" id="h3">2</td><td class="ctr2" id="i18">2</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a28"><a href="HelpFormatter.java.html#L793" class="el_method">renderOptions(StringBuffer, int, Options, int, int)</a></td><td class="bar" id="b4"><img src="../.resources/redbar.gif" width="2" height="10" title="5" alt="5"/><img src="../.resources/greenbar.gif" width="117" height="10" title="196" alt="196"/></td><td class="ctr2" id="c35">98%</td><td class="bar" id="d1"><img src="../.resources/redbar.gif" width="12" height="10" title="3" alt="3"/><img src="../.resources/greenbar.gif" width="107" height="10" title="25" alt="25"/></td><td class="ctr2" id="e6">89%</td><td class="ctr1" id="f1">3</td><td class="ctr2" id="g0">15</td><td class="ctr1" id="h4">1</td><td class="ctr2" id="i0">38</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a3"><a href="HelpFormatter.java.ht
ml#L987" class="el_method">findWrapPos(String, int, int)</a></td><td class="bar" id="b5"><img src="../.resources/redbar.gif" width="1" height="10" title="3" alt="3"/><img src="../.resources/greenbar.gif" width="44" height="10" title="75" alt="75"/></td><td class="ctr2" id="c37">96%</td><td class="bar" id="d0"><img src="../.resources/redbar.gif" width="17" height="10" title="4" alt="4"/><img src="../.resources/greenbar.gif" width="77" height="10" title="18" alt="18"/></td><td class="ctr2" id="e8">82%</td><td class="ctr1" id="f0">4</td><td class="ctr2" id="g1">12</td><td class="ctr1" id="h5">1</td><td class="ctr2" id="i2">16</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a30"><a href="HelpFormatter.java.html#L946" class="el_method">renderWrappedTextBlock(StringBuffer, int, int, String)</a></td><td class="bar" id="b6"><img src="../.resources/greenbar.gif" width="21" height="10" title="36" alt="36"/></td><td class="ctr2" id="c36">97%</td><td class="ba
r" id="d8"><img src="../.resources/greenbar.gif" width="17" height="10" title="4" alt="4"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g8">3</td><td class="ctr1" id="h6">1</td><td class="ctr2" id="i8">10</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a29"><a href="HelpFormatter.java.html#L893" class="el_method">renderWrappedText(StringBuffer, int, int, String)</a></td><td class="bar" id="b7"><img src="../.resources/greenbar.gif" width="53" height="10" title="89" alt="89"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d6"><img src="../.resources/greenbar.gif" width="42" height="10" title="10" alt="10"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g4">6</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i3">16</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a25"><a href="HelpFormatter.java.html#L582" class
="el_method">printUsage(PrintWriter, int, String, Options)</a></td><td class="bar" id="b8"><img src="../.resources/greenbar.gif" width="49" height="10" title="83" alt="83"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d7"><img src="../.resources/greenbar.gif" width="42" height="10" title="10" alt="10"/></td><td class="ctr2" id="e2">100%</td><td class="ctr1" id="f10">0</td><td class="ctr2" id="g5">6</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i1">18</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr><tr><td id="a0"><a href="HelpFormatter.java.html#L683" class="el_method">appendOption(StringBuffer, Option, boolean)</a></td><td class="bar" id="b9"><img src="../.resources/greenbar.gif" width="39" height="10" title="66" alt="66"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d4"><img src="../.resources/greenbar.gif" width="68" height="10" title="16" alt="16"/></td><td class="ctr2" id="e3">100%</td><td class="ctr1" id="f11">0</td>
<td class="ctr2" id="g2">9</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i6">11</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr><tr><td id="a18"><a href="HelpFormatter.java.html#L544" class="el_method">printHelp(PrintWriter, int, String, String, Options, int, int, String, boolean)</a></td><td class="bar" id="b10"><img src="../.resources/greenbar.gif" width="32" height="10" title="54" alt="54"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d5"><img src="../.resources/greenbar.gif" width="60" height="10" title="14" alt="14"/></td><td class="ctr2" id="e4">100%</td><td class="ctr1" id="f12">0</td><td class="ctr2" id="g3">8</td><td class="ctr1" id="h10">0</td><td class="ctr2" id="i7">11</td><td class="ctr1" id="j10">0</td><td class="ctr2" id="k10">1</td></tr><tr><td id="a1"><a href="HelpFormatter.java.html#L646" class="el_method">appendOptionGroup(StringBuffer, OptionGroup)</a></td><td class="bar" id="b11"><img src="../.resources/greenbar.gif
" width="29" height="10" title="49" alt="49"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d2"><img src="../.resources/redbar.gif" width="4" height="10" title="1" alt="1"/><img src="../.resources/greenbar.gif" width="38" height="10" title="9" alt="9"/></td><td class="ctr2" id="e5">90%</td><td class="ctr1" id="f6">1</td><td class="ctr2" id="g6">6</td><td class="ctr1" id="h11">0</td><td class="ctr2" id="i5">12</td><td class="ctr1" id="j11">0</td><td class="ctr2" id="k11">1</td></tr><tr><td id="a14"><a href="HelpFormatter.java.html#L73" class="el_method">HelpFormatter()</a></td><td class="bar" id="b12"><img src="../.resources/greenbar.gif" width="22" height="10" title="37" alt="37"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d13"/><td class="ctr2" id="e13">n/a</td><td class="ctr1" id="f13">0</td><td class="ctr2" id="g13">1</td><td class="ctr1" id="h12">0</td><td class="ctr2" id="i4">13</td><td class="ctr1" id="j12">0</td><td class="ctr2" id="k12">1</td></t
r><tr><td id="a31"><a href="HelpFormatter.java.html#L1050" class="el_method">rtrim(String)</a></td><td class="bar" id="b13"><img src="../.resources/greenbar.gif" width="15" height="10" title="26" alt="26"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d3"><img src="../.resources/redbar.gif" width="4" height="10" title="1" alt="1"/><img src="../.resources/greenbar.gif" width="30" height="10" title="7" alt="7"/></td><td class="ctr2" id="e7">88%</td><td class="ctr1" id="f7">1</td><td class="ctr2" id="g7">5</td><td class="ctr1" id="h13">0</td><td class="ctr2" id="i9">6</td><td class="ctr1" id="j13">0</td><td class="ctr2" id="k13">1</td></tr><tr><td id="a24"><a href="HelpFormatter.java.html#L721" class="el_method">printUsage(PrintWriter, int, String)</a></td><td class="bar" id="b14"><img src="../.resources/greenbar.gif" width="14" height="10" title="25" alt="25"/></td><td class="ctr2" id="c7">100%</td><td class="bar" id="d14"/><td class="ctr2" id="e14">n/a</td><td class="ctr
1" id="f14">0</td><td class="ctr2" id="g14">1</td><td class="ctr1" id="h14">0</td><td class="ctr2" id="i13">3</td><td class="ctr1" id="j14">0</td><td class="ctr2" id="k14">1</td></tr><tr><td id="a16"><a href="HelpFormatter.java.html#L490" class="el_method">printHelp(int, String, String, Options, String, boolean)</a></td><td class="bar" id="b15"><img src="../.resources/greenbar.gif" width="12" height="10" title="21" alt="21"/></td><td class="ctr2" id="c8">100%</td><td class="bar" id="d15"/><td class="ctr2" id="e15">n/a</td><td class="ctr1" id="f15">0</td><td class="ctr2" id="g15">1</td><td class="ctr1" id="h15">0</td><td class="ctr2" id="i10">4</td><td class="ctr1" id="j15">0</td><td class="ctr2" id="k15">1</td></tr><tr><td id="a26"><a href="HelpFormatter.java.html#L769" class="el_method">printWrapped(PrintWriter, int, int, String)</a></td><td class="bar" id="b16"><img src="../.resources/greenbar.gif" width="10" height="10" title="18" alt="18"/></td><td class="ctr2" id="c9">100%</td>
<td class="bar" id="d16"/><td class="ctr2" id="e16">n/a</td><td class="ctr1" id="f16">0</td><td class="ctr2" id="g16">1</td><td class="ctr1" id="h16">0</td><td class="ctr2" id="i11">4</td><td class="ctr1" id="j16">0</td><td class="ctr2" id="k16">1</td></tr><tr><td id="a23"><a href="HelpFormatter.java.html#L741" class="el_method">printOptions(PrintWriter, int, Options, int, int)</a></td><td class="bar" id="b17"><img src="../.resources/greenbar.gif" width="10" height="10" title="17" alt="17"/></td><td class="ctr2" id="c10">100%</td><td class="bar" id="d17"/><td class="ctr2" id="e17">n/a</td><td class="ctr1" id="f17">0</td><td class="ctr2" id="g17">1</td><td class="ctr1" id="h17">0</td><td class="ctr2" id="i12">4</td><td class="ctr1" id="j17">0</td><td class="ctr2" id="k17">1</td></tr><tr><td id="a17"><a href="HelpFormatter.java.html#L517" class="el_method">printHelp(PrintWriter, int, String, String, Options, int, int, String)</a></td><td class="bar" id="b18"><img src="../.resources/gr
eenbar.gif" width="7" height="10" title="12" alt="12"/></td><td class="ctr2" id="c11">100%</td><td class="bar" id="d18"/><td class="ctr2" id="e18">n/a</td><td class="ctr1" id="f18">0</td><td class="ctr2" id="g18">1</td><td class="ctr1" id="h18">0</td><td class="ctr2" id="i19">2</td><td class="ctr1" id="j18">0</td><td class="ctr2" id="k18">1</td></tr><tr><td id="a2"><a href="HelpFormatter.java.html#L1035" class="el_method">createPadding(int)</a></td><td class="bar" id="b19"><img src="../.resources/greenbar.gif" width="6" height="10" title="11" alt="11"/></td><td class="ctr2" id="c12">100%</td><td class="bar" id="d19"/><td class="ctr2" id="e19">n/a</td><td class="ctr1" id="f19">0</td><td class="ctr2" id="g19">1</td><td class="ctr1" id="h19">0</td><td class="ctr2" id="i14">3</td><td class="ctr1" id="j19">0</td><td class="ctr2" id="k19">1</td></tr><tr><td id="a19"><a href="HelpFormatter.java.html#L408" class="el_method">printHelp(String, Options)</a></td><td class="bar" id="b20"><img sr
c="../.resources/greenbar.gif" width="5" height="10" title="10" alt="10"/></td><td class="ctr2" id="c13">100%</td><td class="bar" id="d20"/><td class="ctr2" id="e20">n/a</td><td class="ctr1" id="f20">0</td><td class="ctr2" id="g20">1</td><td class="ctr1" id="h20">0</td><td class="ctr2" id="i20">2</td><td class="ctr1" id="j20">0</td><td class="ctr2" id="k20">1</td></tr><tr><td id="a27"><a href="HelpFormatter.java.html#L756" class="el_method">printWrapped(PrintWriter, int, String)</a></td><td class="bar" id="b21"><img src="../.resources/greenbar.gif" width="4" height="10" title="7" alt="7"/></td><td class="ctr2" id="c14">100%</td><td class="bar" id="d21"/><td class="ctr2" id="e21">n/a</td><td class="ctr1" id="f21">0</td><td class="ctr2" id="g21">1</td><td class="ctr1" id="h21">0</td><td class="ctr2" id="i21">2</td><td class="ctr1" id="j21">0</td><td class="ctr2" id="k21">1</td></tr><tr><td id="a41"><a href="HelpFormatter.java.html#L197" class="el_method">setWidth(int)</a></td><td clas
s="bar" id="b22"><img src="../.resources/greenbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c15">100%</td><td class="bar" id="d22"/><td class="ctr2" id="e22">n/a</td><td class="ctr1" id="f22">0</td><td class="ctr2" id="g22">1</td><td class="ctr1" id="h22">0</td><td class="ctr2" id="i22">2</td><td class="ctr1" id="j22">0</td><td class="ctr2" id="k22">1</td></tr><tr><td id="a34"><a href="HelpFormatter.java.html#L217" class="el_method">setLeftPadding(int)</a></td><td class="bar" id="b23"><img src="../.resources/greenbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c16">100%</td><td class="bar" id="d23"/><td class="ctr2" id="e23">n/a</td><td class="ctr1" id="f23">0</td><td class="ctr2" id="g23">1</td><td class="ctr1" id="h23">0</td><td class="ctr2" id="i23">2</td><td class="ctr1" id="j23">0</td><td class="ctr2" id="k23">1</td></tr><tr><td id="a33"><a href="HelpFormatter.java.html#L237" class="el_method">setDescPadding(int)</a></td
><td class="bar" id="b24"><img src="../.resources/greenbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c17">100%</td><td class="bar" id="d24"/><td class="ctr2" id="e24">n/a</td><td class="ctr1" id="f24">0</td><td class="ctr2" id="g24">1</td><td class="ctr1" id="h24">0</td><td class="ctr2" id="i24">2</td><td class="ctr1" id="j24">0</td><td class="ctr2" id="k24">1</td></tr><tr><td id="a40"><a href="HelpFormatter.java.html#L257" class="el_method">setSyntaxPrefix(String)</a></td><td class="bar" id="b25"><img src="../.resources/greenbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c18">100%</td><td class="bar" id="d25"/><td class="ctr2" id="e25">n/a</td><td class="ctr1" id="f25">0</td><td class="ctr2" id="g25">1</td><td class="ctr1" id="h25">0</td><td class="ctr2" id="i25">2</td><td class="ctr1" id="j25">0</td><td class="ctr2" id="k25">1</td></tr><tr><td id="a37"><a href="HelpFormatter.java.html#L277" class="el_method">setNewLine(Str
ing)</a></td><td class="bar" id="b26"><img src="../.resources/greenbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c19">100%</td><td class="bar" id="d26"/><td class="ctr2" id="e26">n/a</td><td class="ctr1" id="f26">0</td><td class="ctr2" id="g26">1</td><td class="ctr1" id="h26">0</td><td class="ctr2" id="i26">2</td><td class="ctr1" id="j26">0</td><td class="ctr2" id="k26">1</td></tr><tr><td id="a39"><a href="HelpFormatter.java.html#L297" class="el_method">setOptPrefix(String)</a></td><td class="bar" id="b27"><img src="../.resources/greenbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c20">100%</td><td class="bar" id="d27"/><td class="ctr2" id="e27">n/a</td><td class="ctr1" id="f27">0</td><td class="ctr2" id="g27">1</td><td class="ctr1" id="h27">0</td><td class="ctr2" id="i27">2</td><td class="ctr1" id="j27">0</td><td class="ctr2" id="k27">1</td></tr><tr><td id="a35"><a href="HelpFormatter.java.html#L317" class="el_method">setLo
ngOptPrefix(String)</a></td><td class="bar" id="b28"><img src="../.resources/greenbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c21">100%</td><td class="bar" id="d28"/><td class="ctr2" id="e28">n/a</td><td class="ctr1" id="f28">0</td><td class="ctr2" id="g28">1</td><td class="ctr1" id="h28">0</td><td class="ctr2" id="i28">2</td><td class="ctr1" id="j28">0</td><td class="ctr2" id="k28">1</td></tr><tr><td id="a36"><a href="HelpFormatter.java.html#L340" class="el_method">setLongOptSeparator(String)</a></td><td class="bar" id="b29"><img src="../.resources/greenbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c22">100%</td><td class="bar" id="d29"/><td class="ctr2" id="e29">n/a</td><td class="ctr1" id="f29">0</td><td class="ctr2" id="g29">1</td><td class="ctr1" id="h29">0</td><td class="ctr2" id="i29">2</td><td class="ctr1" id="j29">0</td><td class="ctr2" id="k29">1</td></tr><tr><td id="a32"><a href="HelpFormatter.java.html#L361" c
lass="el_method">setArgName(String)</a></td><td class="bar" id="b30"><img src="../.resources/greenbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c23">100%</td><td class="bar" id="d30"/><td class="ctr2" id="e30">n/a</td><td class="ctr1" id="f30">0</td><td class="ctr2" id="g30">1</td><td class="ctr1" id="h30">0</td><td class="ctr2" id="i30">2</td><td class="ctr1" id="j30">0</td><td class="ctr2" id="k30">1</td></tr><tr><td id="a38"><a href="HelpFormatter.java.html#L395" class="el_method">setOptionComparator(Comparator)</a></td><td class="bar" id="b31"><img src="../.resources/greenbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c24">100%</td><td class="bar" id="d31"/><td class="ctr2" id="e31">n/a</td><td class="ctr1" id="f31">0</td><td class="ctr2" id="g31">1</td><td class="ctr1" id="h31">0</td><td class="ctr2" id="i31">2</td><td class="ctr1" id="j31">0</td><td class="ctr2" id="k31">1</td></tr><tr><td id="a13"><a href="HelpFormatt
er.java.html#L207" class="el_method">getWidth()</a></td><td class="bar" id="b32"><img src="../.resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c25">100%</td><td class="bar" id="d32"/><td class="ctr2" id="e32">n/a</td><td class="ctr1" id="f32">0</td><td class="ctr2" id="g32">1</td><td class="ctr1" id="h32">0</td><td class="ctr2" id="i32">1</td><td class="ctr1" id="j32">0</td><td class="ctr2" id="k32">1</td></tr><tr><td id="a6"><a href="HelpFormatter.java.html#L227" class="el_method">getLeftPadding()</a></td><td class="bar" id="b33"><img src="../.resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c26">100%</td><td class="bar" id="d33"/><td class="ctr2" id="e33">n/a</td><td class="ctr1" id="f33">0</td><td class="ctr2" id="g33">1</td><td class="ctr1" id="h33">0</td><td class="ctr2" id="i33">1</td><td class="ctr1" id="j33">0</td><td class="ctr2" id="k33">1</td></tr><tr><td id="a5"><a href="HelpFormatter.ja
va.html#L247" class="el_method">getDescPadding()</a></td><td class="bar" id="b34"><img src="../.resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c27">100%</td><td class="bar" id="d34"/><td class="ctr2" id="e34">n/a</td><td class="ctr1" id="f34">0</td><td class="ctr2" id="g34">1</td><td class="ctr1" id="h34">0</td><td class="ctr2" id="i34">1</td><td class="ctr1" id="j34">0</td><td class="ctr2" id="k34">1</td></tr><tr><td id="a12"><a href="HelpFormatter.java.html#L267" class="el_method">getSyntaxPrefix()</a></td><td class="bar" id="b35"><img src="../.resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c28">100%</td><td class="bar" id="d35"/><td class="ctr2" id="e35">n/a</td><td class="ctr1" id="f35">0</td><td class="ctr2" id="g35">1</td><td class="ctr1" id="h35">0</td><td class="ctr2" id="i35">1</td><td class="ctr1" id="j35">0</td><td class="ctr2" id="k35">1</td></tr><tr><td id="a9"><a href="HelpFormatter
.java.html#L287" class="el_method">getNewLine()</a></td><td class="bar" id="b36"><img src="../.resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c29">100%</td><td class="bar" id="d36"/><td class="ctr2" id="e36">n/a</td><td class="ctr1" id="f36">0</td><td class="ctr2" id="g36">1</td><td class="ctr1" id="h36">0</td><td class="ctr2" id="i36">1</td><td class="ctr1" id="j36">0</td><td class="ctr2" id="k36">1</td></tr><tr><td id="a11"><a href="HelpFormatter.java.html#L307" class="el_method">getOptPrefix()</a></td><td class="bar" id="b37"><img src="../.resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c30">100%</td><td class="bar" id="d37"/><td class="ctr2" id="e37">n/a</td><td class="ctr1" id="f37">0</td><td class="ctr2" id="g37">1</td><td class="ctr1" id="h37">0</td><td class="ctr2" id="i37">1</td><td class="ctr1" id="j37">0</td><td class="ctr2" id="k37">1</td></tr><tr><td id="a7"><a href="HelpFormatter.jav
a.html#L327" class="el_method">getLongOptPrefix()</a></td><td class="bar" id="b38"><img src="../.resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c31">100%</td><td class="bar" id="d38"/><td class="ctr2" id="e38">n/a</td><td class="ctr1" id="f38">0</td><td class="ctr2" id="g38">1</td><td class="ctr1" id="h38">0</td><td class="ctr2" id="i38">1</td><td class="ctr1" id="j38">0</td><td class="ctr2" id="k38">1</td></tr><tr><td id="a8"><a href="HelpFormatter.java.html#L351" class="el_method">getLongOptSeparator()</a></td><td class="bar" id="b39"><img src="../.resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c32">100%</td><td class="bar" id="d39"/><td class="ctr2" id="e39">n/a</td><td class="ctr1" id="f39">0</td><td class="ctr2" id="g39">1</td><td class="ctr1" id="h39">0</td><td class="ctr2" id="i39">1</td><td class="ctr1" id="j39">0</td><td class="ctr2" id="k39">1</td></tr><tr><td id="a4"><a href="HelpForma
tter.java.html#L371" class="el_method">getArgName()</a></td><td class="bar" id="b40"><img src="../.resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c33">100%</td><td class="bar" id="d40"/><td class="ctr2" id="e40">n/a</td><td class="ctr1" id="f40">0</td><td class="ctr2" id="g40">1</td><td class="ctr1" id="h40">0</td><td class="ctr2" id="i40">1</td><td class="ctr1" id="j40">0</td><td class="ctr2" id="k40">1</td></tr><tr><td id="a10"><a href="HelpFormatter.java.html#L383" class="el_method">getOptionComparator()</a></td><td class="bar" id="b41"><img src="../.resources/greenbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c34">100%</td><td class="bar" id="d41"/><td class="ctr2" id="e41">n/a</td><td class="ctr1" id="f41">0</td><td class="ctr2" id="g41">1</td><td class="ctr1" id="h41">0</td><td class="ctr2" id="i41">1</td><td class="ctr1" id="j41">0</td><td class="ctr2" id="k41">1</td></tr></tbody></table><div class="foo
ter"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span></div></body></html>
\ No newline at end of file
Propchange: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/HelpFormatter.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/HelpFormatter.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/HelpFormatter.java.html (added)
+++ websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/HelpFormatter.java.html Sat May 9 18:19:15 2015
@@ -0,0 +1,1095 @@
+<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../.resources/report.gif" type="image/gif"/><title>HelpFormatter.java</title><link rel="stylesheet" href="../.resources/prettify.css" type="text/css"/><script type="text/javascript" src="../.resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CLI</a> > <a href="index.source.html" class="el_package">org.apache.commons.cli</a> > <span class="el_source">HelpFormatter.java</span></div><h
1>HelpFormatter.java</h1><pre class="source lang-java linenums">/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.commons.cli;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.io.Serializable;
+import java.io.StringReader;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * A formatter of help messages for command line options.
+ *
+ * <p>Example:</p>
+ *
+ * <pre>
+ * Options options = new Options();
+ * options.addOption(OptionBuilder.withLongOpt("file")
+ * .withDescription("The file to be processed")
+ * .hasArg()
+ * .withArgName("FILE")
+ * .isRequired()
+ * .create('f'));
+ * options.addOption(OptionBuilder.withLongOpt("version")
+ * .withDescription("Print the version of the application")
+ * .create('v'));
+ * options.addOption(OptionBuilder.withLongOpt("help").create('h'));
+ *
+ * String header = "Do something useful with an input file\n\n";
+ * String footer = "\nPlease report issues at http://example.com/issues";
+ *
+ * HelpFormatter formatter = new HelpFormatter();
+ * formatter.printHelp("myapp", header, options, footer, true);
+ * </pre>
+ *
+ * This produces the following output:
+ *
+ * <pre>
+ * usage: myapp -f &lt;FILE&gt; [-h] [-v]
+ * Do something useful with an input file
+ *
+ * -f,--file &lt;FILE&gt; The file to be processed
+ * -h,--help
+ * -v,--version Print the version of the application
+ *
+ * Please report issues at http://example.com/issues
+ * </pre>
+ *
+ * @version $Id: HelpFormatter.java 1677407 2015-05-03 14:31:12Z britter $
+ */
+<span class="fc" id="L73">public class HelpFormatter</span>
+{
+ // --------------------------------------------------------------- Constants
+
+ /** default number of characters per line */
+ public static final int DEFAULT_WIDTH = 74;
+
+ /** default padding to the left of each line */
+ public static final int DEFAULT_LEFT_PAD = 1;
+
+ /** number of space characters to be prefixed to each description line */
+ public static final int DEFAULT_DESC_PAD = 3;
+
+ /** the string to display at the beginning of the usage statement */
+ public static final String DEFAULT_SYNTAX_PREFIX = "usage: ";
+
+ /** default prefix for shortOpts */
+ public static final String DEFAULT_OPT_PREFIX = "-";
+
+ /** default prefix for long Option */
+ public static final String DEFAULT_LONG_OPT_PREFIX = "--";
+
+ /**
+ * default separator displayed between a long Option and its value
+ *
+ * @since 1.3
+ **/
+ public static final String DEFAULT_LONG_OPT_SEPARATOR = " ";
+
+ /** default name for an argument */
+ public static final String DEFAULT_ARG_NAME = "arg";
+
+ // -------------------------------------------------------------- Attributes
+
+ /**
+ * number of characters per line
+ *
+ * @deprecated Scope will be made private for next major version
+ * - use get/setWidth methods instead.
+ */
+<span class="fc" id="L113"> @Deprecated</span>
+ public int defaultWidth = DEFAULT_WIDTH;
+
+ /**
+ * amount of padding to the left of each line
+ *
+ * @deprecated Scope will be made private for next major version
+ * - use get/setLeftPadding methods instead.
+ */
+<span class="fc" id="L122"> @Deprecated</span>
+ public int defaultLeftPad = DEFAULT_LEFT_PAD;
+
+ /**
+ * the number of characters of padding to be prefixed
+ * to each description line
+ *
+ * @deprecated Scope will be made private for next major version
+ * - use get/setDescPadding methods instead.
+ */
+<span class="fc" id="L132"> @Deprecated</span>
+ public int defaultDescPad = DEFAULT_DESC_PAD;
+
+ /**
+ * the string to display at the beginning of the usage statement
+ *
+ * @deprecated Scope will be made private for next major version
+ * - use get/setSyntaxPrefix methods instead.
+ */
+<span class="fc" id="L141"> @Deprecated</span>
+ public String defaultSyntaxPrefix = DEFAULT_SYNTAX_PREFIX;
+
+ /**
+ * the new line string
+ *
+ * @deprecated Scope will be made private for next major version
+ * - use get/setNewLine methods instead.
+ */
+<span class="fc" id="L150"> @Deprecated</span>
+<span class="fc" id="L151"> public String defaultNewLine = System.getProperty("line.separator");</span>
+
+ /**
+ * the shortOpt prefix
+ *
+ * @deprecated Scope will be made private for next major version
+ * - use get/setOptPrefix methods instead.
+ */
+<span class="fc" id="L159"> @Deprecated</span>
+ public String defaultOptPrefix = DEFAULT_OPT_PREFIX;
+
+ /**
+ * the long Opt prefix
+ *
+ * @deprecated Scope will be made private for next major version
+ * - use get/setLongOptPrefix methods instead.
+ */
+<span class="fc" id="L168"> @Deprecated</span>
+ public String defaultLongOptPrefix = DEFAULT_LONG_OPT_PREFIX;
+
+ /**
+ * the name of the argument
+ *
+ * @deprecated Scope will be made private for next major version
+ * - use get/setArgName methods instead.
+ */
+<span class="fc" id="L177"> @Deprecated</span>
+ public String defaultArgName = DEFAULT_ARG_NAME;
+
+ /**
+ * Comparator used to sort the options when they output in help text
+ *
+ * Defaults to case-insensitive alphabetical sorting by option key
+ */
+<span class="fc" id="L185"> protected Comparator<Option> optionComparator = new OptionComparator();</span>
+
+ /** The separator displayed between the long option and its value. */
+<span class="fc" id="L188"> private String longOptSeparator = DEFAULT_LONG_OPT_SEPARATOR;</span>
+
+ /**
+ * Sets the 'width'.
+ *
+ * @param width the new value of 'width'
+ */
+ public void setWidth(int width)
+ {
+<span class="fc" id="L197"> this.defaultWidth = width;</span>
+<span class="fc" id="L198"> }</span>
+
+ /**
+ * Returns the 'width'.
+ *
+ * @return the 'width'
+ */
+ public int getWidth()
+ {
+<span class="fc" id="L207"> return defaultWidth;</span>
+ }
+
+ /**
+ * Sets the 'leftPadding'.
+ *
+ * @param padding the new value of 'leftPadding'
+ */
+ public void setLeftPadding(int padding)
+ {
+<span class="fc" id="L217"> this.defaultLeftPad = padding;</span>
+<span class="fc" id="L218"> }</span>
+
+ /**
+ * Returns the 'leftPadding'.
+ *
+ * @return the 'leftPadding'
+ */
+ public int getLeftPadding()
+ {
+<span class="fc" id="L227"> return defaultLeftPad;</span>
+ }
+
+ /**
+ * Sets the 'descPadding'.
+ *
+ * @param padding the new value of 'descPadding'
+ */
+ public void setDescPadding(int padding)
+ {
+<span class="fc" id="L237"> this.defaultDescPad = padding;</span>
+<span class="fc" id="L238"> }</span>
+
+ /**
+ * Returns the 'descPadding'.
+ *
+ * @return the 'descPadding'
+ */
+ public int getDescPadding()
+ {
+<span class="fc" id="L247"> return defaultDescPad;</span>
+ }
+
+ /**
+ * Sets the 'syntaxPrefix'.
+ *
+ * @param prefix the new value of 'syntaxPrefix'
+ */
+ public void setSyntaxPrefix(String prefix)
+ {
+<span class="fc" id="L257"> this.defaultSyntaxPrefix = prefix;</span>
+<span class="fc" id="L258"> }</span>
+
+ /**
+ * Returns the 'syntaxPrefix'.
+ *
+ * @return the 'syntaxPrefix'
+ */
+ public String getSyntaxPrefix()
+ {
+<span class="fc" id="L267"> return defaultSyntaxPrefix;</span>
+ }
+
+ /**
+ * Sets the 'newLine'.
+ *
+ * @param newline the new value of 'newLine'
+ */
+ public void setNewLine(String newline)
+ {
+<span class="fc" id="L277"> this.defaultNewLine = newline;</span>
+<span class="fc" id="L278"> }</span>
+
+ /**
+ * Returns the 'newLine'.
+ *
+ * @return the 'newLine'
+ */
+ public String getNewLine()
+ {
+<span class="fc" id="L287"> return defaultNewLine;</span>
+ }
+
+ /**
+ * Sets the 'optPrefix'.
+ *
+ * @param prefix the new value of 'optPrefix'
+ */
+ public void setOptPrefix(String prefix)
+ {
+<span class="fc" id="L297"> this.defaultOptPrefix = prefix;</span>
+<span class="fc" id="L298"> }</span>
+
+ /**
+ * Returns the 'optPrefix'.
+ *
+ * @return the 'optPrefix'
+ */
+ public String getOptPrefix()
+ {
+<span class="fc" id="L307"> return defaultOptPrefix;</span>
+ }
+
+ /**
+ * Sets the 'longOptPrefix'.
+ *
+ * @param prefix the new value of 'longOptPrefix'
+ */
+ public void setLongOptPrefix(String prefix)
+ {
+<span class="fc" id="L317"> this.defaultLongOptPrefix = prefix;</span>
+<span class="fc" id="L318"> }</span>
+
+ /**
+ * Returns the 'longOptPrefix'.
+ *
+ * @return the 'longOptPrefix'
+ */
+ public String getLongOptPrefix()
+ {
+<span class="fc" id="L327"> return defaultLongOptPrefix;</span>
+ }
+
+ /**
+ * Set the separator displayed between a long option and its value.
+ * Ensure that the separator specified is supported by the parser used,
+ * typically ' ' or '='.
+ *
+ * @param longOptSeparator the separator, typically ' ' or '='.
+ * @since 1.3
+ */
+ public void setLongOptSeparator(String longOptSeparator)
+ {
+<span class="fc" id="L340"> this.longOptSeparator = longOptSeparator;</span>
+<span class="fc" id="L341"> }</span>
+
+ /**
+ * Returns the separator displayed between a long option and its value.
+ *
+ * @return the separator
+ * @since 1.3
+ */
+ public String getLongOptSeparator()
+ {
+<span class="fc" id="L351"> return longOptSeparator;</span>
+ }
+
+ /**
+ * Sets the 'argName'.
+ *
+ * @param name the new value of 'argName'
+ */
+ public void setArgName(String name)
+ {
+<span class="fc" id="L361"> this.defaultArgName = name;</span>
+<span class="fc" id="L362"> }</span>
+
+ /**
+ * Returns the 'argName'.
+ *
+ * @return the 'argName'
+ */
+ public String getArgName()
+ {
+<span class="fc" id="L371"> return defaultArgName;</span>
+ }
+
+ /**
+ * Comparator used to sort the options when they output in help text.
+ * Defaults to case-insensitive alphabetical sorting by option key.
+ *
+ * @return the {@link Comparator} currently in use to sort the options
+ * @since 1.2
+ */
+ public Comparator<Option> getOptionComparator()
+ {
+<span class="fc" id="L383"> return optionComparator;</span>
+ }
+
+ /**
+ * Set the comparator used to sort the options when they output in help text.
+ * Passing in a null comparator will keep the options in the order they were declared.
+ *
+ * @param comparator the {@link Comparator} to use for sorting the options
+ * @since 1.2
+ */
+ public void setOptionComparator(Comparator<Option> comparator)
+ {
+<span class="fc" id="L395"> this.optionComparator = comparator;</span>
+<span class="fc" id="L396"> }</span>
+
+ /**
+ * Print the help for <code>options</code> with the specified
+ * command line syntax. This method prints help information to
+ * System.out.
+ *
+ * @param cmdLineSyntax the syntax for this application
+ * @param options the Options instance
+ */
+ public void printHelp(String cmdLineSyntax, Options options)
+ {
+<span class="fc" id="L408"> printHelp(getWidth(), cmdLineSyntax, null, options, null, false);</span>
+<span class="fc" id="L409"> }</span>
+
+ /**
+ * Print the help for <code>options</code> with the specified
+ * command line syntax. This method prints help information to
+ * System.out.
+ *
+ * @param cmdLineSyntax the syntax for this application
+ * @param options the Options instance
+ * @param autoUsage whether to print an automatically generated
+ * usage statement
+ */
+ public void printHelp(String cmdLineSyntax, Options options, boolean autoUsage)
+ {
+<span class="nc" id="L423"> printHelp(getWidth(), cmdLineSyntax, null, options, null, autoUsage);</span>
+<span class="nc" id="L424"> }</span>
+
+ /**
+ * Print the help for <code>options</code> with the specified
+ * command line syntax. This method prints help information to
+ * System.out.
+ *
+ * @param cmdLineSyntax the syntax for this application
+ * @param header the banner to display at the beginning of the help
+ * @param options the Options instance
+ * @param footer the banner to display at the end of the help
+ */
+ public void printHelp(String cmdLineSyntax, String header, Options options, String footer)
+ {
+<span class="nc" id="L438"> printHelp(cmdLineSyntax, header, options, footer, false);</span>
+<span class="nc" id="L439"> }</span>
+
+ /**
+ * Print the help for <code>options</code> with the specified
+ * command line syntax. This method prints help information to
+ * System.out.
+ *
+ * @param cmdLineSyntax the syntax for this application
+ * @param header the banner to display at the beginning of the help
+ * @param options the Options instance
+ * @param footer the banner to display at the end of the help
+ * @param autoUsage whether to print an automatically generated
+ * usage statement
+ */
+ public void printHelp(String cmdLineSyntax, String header, Options options, String footer, boolean autoUsage)
+ {
+<span class="nc" id="L455"> printHelp(getWidth(), cmdLineSyntax, header, options, footer, autoUsage);</span>
+<span class="nc" id="L456"> }</span>
+
+ /**
+ * Print the help for <code>options</code> with the specified
+ * command line syntax. This method prints help information to
+ * System.out.
+ *
+ * @param width the number of characters to be displayed on each line
+ * @param cmdLineSyntax the syntax for this application
+ * @param header the banner to display at the beginning of the help
+ * @param options the Options instance
+ * @param footer the banner to display at the end of the help
+ */
+ public void printHelp(int width, String cmdLineSyntax, String header, Options options, String footer)
+ {
+<span class="nc" id="L471"> printHelp(width, cmdLineSyntax, header, options, footer, false);</span>
+<span class="nc" id="L472"> }</span>
+
+ /**
+ * Print the help for <code>options</code> with the specified
+ * command line syntax. This method prints help information to
+ * System.out.
+ *
+ * @param width the number of characters to be displayed on each line
+ * @param cmdLineSyntax the syntax for this application
+ * @param header the banner to display at the beginning of the help
+ * @param options the Options instance
+ * @param footer the banner to display at the end of the help
+ * @param autoUsage whether to print an automatically generated
+ * usage statement
+ */
+ public void printHelp(int width, String cmdLineSyntax, String header,
+ Options options, String footer, boolean autoUsage)
+ {
+<span class="fc" id="L490"> PrintWriter pw = new PrintWriter(System.out);</span>
+
+<span class="fc" id="L492"> printHelp(pw, width, cmdLineSyntax, header, options, getLeftPadding(), getDescPadding(), footer, autoUsage);</span>
+<span class="fc" id="L493"> pw.flush();</span>
+<span class="fc" id="L494"> }</span>
+
+ /**
+ * Print the help for <code>options</code> with the specified
+ * command line syntax.
+ *
+ * @param pw the writer to which the help will be written
+ * @param width the number of characters to be displayed on each line
+ * @param cmdLineSyntax the syntax for this application
+ * @param header the banner to display at the beginning of the help
+ * @param options the Options instance
+ * @param leftPad the number of characters of padding to be prefixed
+ * to each line
+ * @param descPad the number of characters of padding to be prefixed
+ * to each description line
+ * @param footer the banner to display at the end of the help
+ *
+ * @throws IllegalStateException if there is no room to print a line
+ */
+ public void printHelp(PrintWriter pw, int width, String cmdLineSyntax,
+ String header, Options options, int leftPad,
+ int descPad, String footer)
+ {
+<span class="fc" id="L517"> printHelp(pw, width, cmdLineSyntax, header, options, leftPad, descPad, footer, false);</span>
+<span class="fc" id="L518"> }</span>
+
+
+ /**
+ * Print the help for <code>options</code> with the specified
+ * command line syntax.
+ *
+ * @param pw the writer to which the help will be written
+ * @param width the number of characters to be displayed on each line
+ * @param cmdLineSyntax the syntax for this application
+ * @param header the banner to display at the beginning of the help
+ * @param options the Options instance
+ * @param leftPad the number of characters of padding to be prefixed
+ * to each line
+ * @param descPad the number of characters of padding to be prefixed
+ * to each description line
+ * @param footer the banner to display at the end of the help
+ * @param autoUsage whether to print an automatically generated
+ * usage statement
+ *
+ * @throws IllegalStateException if there is no room to print a line
+ */
+ public void printHelp(PrintWriter pw, int width, String cmdLineSyntax,
+ String header, Options options, int leftPad,
+ int descPad, String footer, boolean autoUsage)
+ {
+<span class="fc bfc" id="L544" title="All 4 branches covered."> if (cmdLineSyntax == null || cmdLineSyntax.length() == 0)</span>
+ {
+<span class="fc" id="L546"> throw new IllegalArgumentException("cmdLineSyntax not provided");</span>
+ }
+
+<span class="fc bfc" id="L549" title="All 2 branches covered."> if (autoUsage)</span>
+ {
+<span class="fc" id="L551"> printUsage(pw, width, cmdLineSyntax, options);</span>
+ }
+ else
+ {
+<span class="fc" id="L555"> printUsage(pw, width, cmdLineSyntax);</span>
+ }
+
+<span class="fc bfc" id="L558" title="All 4 branches covered."> if (header != null && header.trim().length() > 0)</span>
+ {
+<span class="fc" id="L560"> printWrapped(pw, width, header);</span>
+ }
+
+<span class="fc" id="L563"> printOptions(pw, width, options, leftPad, descPad);</span>
+
+<span class="fc bfc" id="L565" title="All 4 branches covered."> if (footer != null && footer.trim().length() > 0)</span>
+ {
+<span class="fc" id="L567"> printWrapped(pw, width, footer);</span>
+ }
+<span class="fc" id="L569"> }</span>
+
+ /**
+ * Prints the usage statement for the specified application.
+ *
+ * @param pw The PrintWriter to print the usage statement
+ * @param width The number of characters to display per line
+ * @param app The application name
+ * @param options The command line Options
+ */
+ public void printUsage(PrintWriter pw, int width, String app, Options options)
+ {
+ // initialise the string buffer
+<span class="fc" id="L582"> StringBuffer buff = new StringBuffer(getSyntaxPrefix()).append(app).append(" ");</span>
+
+ // create a list for processed option groups
+<span class="fc" id="L585"> Collection<OptionGroup> processedGroups = new ArrayList<OptionGroup>();</span>
+
+<span class="fc" id="L587"> List<Option> optList = new ArrayList<Option>(options.getOptions());</span>
+<span class="fc bfc" id="L588" title="All 2 branches covered."> if (getOptionComparator() != null)</span>
+ {
+<span class="fc" id="L590"> Collections.sort(optList, getOptionComparator());</span>
+ }
+ // iterate over the options
+<span class="fc bfc" id="L593" title="All 2 branches covered."> for (Iterator<Option> it = optList.iterator(); it.hasNext();)</span>
+ {
+ // get the next Option
+<span class="fc" id="L596"> Option option = it.next();</span>
+
+ // check if the option is part of an OptionGroup
+<span class="fc" id="L599"> OptionGroup group = options.getOptionGroup(option);</span>
+
+ // if the option is part of a group
+<span class="fc bfc" id="L602" title="All 2 branches covered."> if (group != null)</span>
+ {
+ // and if the group has not already been processed
+<span class="fc bfc" id="L605" title="All 2 branches covered."> if (!processedGroups.contains(group))</span>
+ {
+ // add the group to the processed list
+<span class="fc" id="L608"> processedGroups.add(group);</span>
+
+
+ // add the usage clause
+<span class="fc" id="L612"> appendOptionGroup(buff, group);</span>
+ }
+
+ // otherwise the option was displayed in the group
+ // previously so ignore it.
+ }
+
+ // if the Option is not part of an OptionGroup
+ else
+ {
+<span class="fc" id="L622"> appendOption(buff, option, option.isRequired());</span>
+ }
+
+<span class="fc bfc" id="L625" title="All 2 branches covered."> if (it.hasNext())</span>
+ {
+<span class="fc" id="L627"> buff.append(" ");</span>
+ }
+<span class="fc" id="L629"> }</span>
+
+
+ // call printWrapped
+<span class="fc" id="L633"> printWrapped(pw, width, buff.toString().indexOf(' ') + 1, buff.toString());</span>
+<span class="fc" id="L634"> }</span>
+
+ /**
+ * Appends the usage clause for an OptionGroup to a StringBuffer.
+ * The clause is wrapped in square brackets if the group is required.
+ * The display of the options is handled by appendOption
+ * @param buff the StringBuffer to append to
+ * @param group the group to append
+ * @see #appendOption(StringBuffer,Option,boolean)
+ */
+ private void appendOptionGroup(StringBuffer buff, OptionGroup group)
+ {
+<span class="fc bfc" id="L646" title="All 2 branches covered."> if (!group.isRequired())</span>
+ {
+<span class="fc" id="L648"> buff.append("[");</span>
+ }
+
+<span class="fc" id="L651"> List<Option> optList = new ArrayList<Option>(group.getOptions());</span>
+<span class="pc bpc" id="L652" title="1 of 2 branches missed."> if (getOptionComparator() != null)</span>
+ {
+<span class="fc" id="L654"> Collections.sort(optList, getOptionComparator());</span>
+ }
+ // for each option in the OptionGroup
+<span class="fc bfc" id="L657" title="All 2 branches covered."> for (Iterator<Option> it = optList.iterator(); it.hasNext();)</span>
+ {
+ // whether the option is required or not is handled at group level
+<span class="fc" id="L660"> appendOption(buff, it.next(), true);</span>
+
+<span class="fc bfc" id="L662" title="All 2 branches covered."> if (it.hasNext())</span>
+ {
+<span class="fc" id="L664"> buff.append(" | ");</span>
+ }
+ }
+
+<span class="fc bfc" id="L668" title="All 2 branches covered."> if (!group.isRequired())</span>
+ {
+<span class="fc" id="L670"> buff.append("]");</span>
+ }
+<span class="fc" id="L672"> }</span>
+
+ /**
+ * Appends the usage clause for an Option to a StringBuffer.
+ *
+ * @param buff the StringBuffer to append to
+ * @param option the Option to append
+ * @param required whether the Option is required or not
+ */
+ private void appendOption(StringBuffer buff, Option option, boolean required)
+ {
+<span class="fc bfc" id="L683" title="All 2 branches covered."> if (!required)</span>
+ {
+<span class="fc" id="L685"> buff.append("[");</span>
+ }
+
+<span class="fc bfc" id="L688" title="All 2 branches covered."> if (option.getOpt() != null)</span>
+ {
+<span class="fc" id="L690"> buff.append("-").append(option.getOpt());</span>
+ }
+ else
+ {
+<span class="fc" id="L694"> buff.append("--").append(option.getLongOpt());</span>
+ }
+
+ // if the Option has a value and a non blank argname
+<span class="fc bfc" id="L698" title="All 6 branches covered."> if (option.hasArg() && (option.getArgName() == null || option.getArgName().length() != 0))</span>
+ {
+<span class="fc bfc" id="L700" title="All 2 branches covered."> buff.append(option.getOpt() == null ? longOptSeparator : " ");</span>
+<span class="fc bfc" id="L701" title="All 2 branches covered."> buff.append("<").append(option.getArgName() != null ? option.getArgName() : getArgName()).append(">");</span>
+ }
+
+ // if the Option is not a required option
+<span class="fc bfc" id="L705" title="All 2 branches covered."> if (!required)</span>
+ {
+<span class="fc" id="L707"> buff.append("]");</span>
+ }
+<span class="fc" id="L709"> }</span>
+
+ /**
+ * Print the cmdLineSyntax to the specified writer, using the
+ * specified width.
+ *
+ * @param pw The printWriter to write the help to
+ * @param width The number of characters per line for the usage statement.
+ * @param cmdLineSyntax The usage statement.
+ */
+ public void printUsage(PrintWriter pw, int width, String cmdLineSyntax)
+ {
+<span class="fc" id="L721"> int argPos = cmdLineSyntax.indexOf(' ') + 1;</span>
+
+<span class="fc" id="L723"> printWrapped(pw, width, getSyntaxPrefix().length() + argPos, getSyntaxPrefix() + cmdLineSyntax);</span>
+<span class="fc" id="L724"> }</span>
+
+ /**
+ * Print the help for the specified Options to the specified writer,
+ * using the specified width, left padding and description padding.
+ *
+ * @param pw The printWriter to write the help to
+ * @param width The number of characters to display per line
+ * @param options The command line Options
+ * @param leftPad the number of characters of padding to be prefixed
+ * to each line
+ * @param descPad the number of characters of padding to be prefixed
+ * to each description line
+ */
+ public void printOptions(PrintWriter pw, int width, Options options,
+ int leftPad, int descPad)
+ {
+<span class="fc" id="L741"> StringBuffer sb = new StringBuffer();</span>
+
+<span class="fc" id="L743"> renderOptions(sb, width, options, leftPad, descPad);</span>
+<span class="fc" id="L744"> pw.println(sb.toString());</span>
+<span class="fc" id="L745"> }</span>
+
+ /**
+ * Print the specified text to the specified PrintWriter.
+ *
+ * @param pw The printWriter to write the help to
+ * @param width The number of characters to display per line
+ * @param text The text to be written to the PrintWriter
+ */
+ public void printWrapped(PrintWriter pw, int width, String text)
+ {
+<span class="fc" id="L756"> printWrapped(pw, width, 0, text);</span>
+<span class="fc" id="L757"> }</span>
+
+ /**
+ * Print the specified text to the specified PrintWriter.
+ *
+ * @param pw The printWriter to write the help to
+ * @param width The number of characters to display per line
+ * @param nextLineTabStop The position on the next line for the first tab.
+ * @param text The text to be written to the PrintWriter
+ */
+ public void printWrapped(PrintWriter pw, int width, int nextLineTabStop, String text)
+ {
+<span class="fc" id="L769"> StringBuffer sb = new StringBuffer(text.length());</span>
+
+<span class="fc" id="L771"> renderWrappedTextBlock(sb, width, nextLineTabStop, text);</span>
+<span class="fc" id="L772"> pw.println(sb.toString());</span>
+<span class="fc" id="L773"> }</span>
+
+ // --------------------------------------------------------------- Protected
+
+ /**
+ * Render the specified Options and return the rendered Options
+ * in a StringBuffer.
+ *
+ * @param sb The StringBuffer to place the rendered Options into.
+ * @param width The number of characters to display per line
+ * @param options The command line Options
+ * @param leftPad the number of characters of padding to be prefixed
+ * to each line
+ * @param descPad the number of characters of padding to be prefixed
+ * to each description line
+ *
+ * @return the StringBuffer with the rendered Options contents.
+ */
+ protected StringBuffer renderOptions(StringBuffer sb, int width, Options options, int leftPad, int descPad)
+ {
+<span class="fc" id="L793"> final String lpad = createPadding(leftPad);</span>
+<span class="fc" id="L794"> final String dpad = createPadding(descPad);</span>
+
+ // first create list containing only <lpad>-a,--aaa where
+ // -a is opt and --aaa is long opt; in parallel look for
+ // the longest opt string this list will be then used to
+ // sort options ascending
+<span class="fc" id="L800"> int max = 0;</span>
+<span class="fc" id="L801"> List<StringBuffer> prefixList = new ArrayList<StringBuffer>();</span>
+
+<span class="fc" id="L803"> List<Option> optList = options.helpOptions();</span>
+
+<span class="pc bpc" id="L805" title="1 of 2 branches missed."> if (getOptionComparator() != null)</span>
+ {
+<span class="fc" id="L807"> Collections.sort(optList, getOptionComparator());</span>
+ }
+
+<span class="fc bfc" id="L810" title="All 2 branches covered."> for (Option option : optList)</span>
+ {
+<span class="fc" id="L812"> StringBuffer optBuf = new StringBuffer();</span>
+
+<span class="fc bfc" id="L814" title="All 2 branches covered."> if (option.getOpt() == null)</span>
+ {
+<span class="fc" id="L816"> optBuf.append(lpad).append(" ").append(getLongOptPrefix()).append(option.getLongOpt());</span>
+ }
+ else
+ {
+<span class="fc" id="L820"> optBuf.append(lpad).append(getOptPrefix()).append(option.getOpt());</span>
+
+<span class="fc bfc" id="L822" title="All 2 branches covered."> if (option.hasLongOpt())</span>
+ {
+<span class="fc" id="L824"> optBuf.append(',').append(getLongOptPrefix()).append(option.getLongOpt());</span>
+ }
+ }
+
+<span class="fc bfc" id="L828" title="All 2 branches covered."> if (option.hasArg())</span>
+ {
+<span class="fc" id="L830"> String argName = option.getArgName();</span>
+<span class="pc bpc" id="L831" title="1 of 4 branches missed."> if (argName != null && argName.length() == 0)</span>
+ {
+ // if the option has a blank argname
+<span class="nc" id="L834"> optBuf.append(' ');</span>
+ }
+ else
+ {
+<span class="fc bfc" id="L838" title="All 2 branches covered."> optBuf.append(option.hasLongOpt() ? longOptSeparator : " ");</span>
+<span class="fc bfc" id="L839" title="All 2 branches covered."> optBuf.append("<").append(argName != null ? option.getArgName() : getArgName()).append(">");</span>
+ }
+ }
+
+<span class="fc" id="L843"> prefixList.add(optBuf);</span>
+<span class="fc bfc" id="L844" title="All 2 branches covered."> max = optBuf.length() > max ? optBuf.length() : max;</span>
+<span class="fc" id="L845"> }</span>
+
+<span class="fc" id="L847"> int x = 0;</span>
+
+<span class="fc bfc" id="L849" title="All 2 branches covered."> for (Iterator<Option> it = optList.iterator(); it.hasNext();)</span>
+ {
+<span class="fc" id="L851"> Option option = it.next();</span>
+<span class="fc" id="L852"> StringBuilder optBuf = new StringBuilder(prefixList.get(x++).toString());</span>
+
+<span class="fc bfc" id="L854" title="All 2 branches covered."> if (optBuf.length() < max)</span>
+ {
+<span class="fc" id="L856"> optBuf.append(createPadding(max - optBuf.length()));</span>
+ }
+
+<span class="fc" id="L859"> optBuf.append(dpad);</span>
+
+<span class="fc" id="L861"> int nextLineTabStop = max + descPad;</span>
+
+<span class="pc bpc" id="L863" title="1 of 2 branches missed."> if (option.getDescription() != null)</span>
+ {
+<span class="fc" id="L865"> optBuf.append(option.getDescription());</span>
+ }
+
+<span class="fc" id="L868"> renderWrappedText(sb, width, nextLineTabStop, optBuf.toString());</span>
+
+<span class="fc bfc" id="L870" title="All 2 branches covered."> if (it.hasNext())</span>
+ {
+<span class="fc" id="L872"> sb.append(getNewLine());</span>
+ }
+<span class="fc" id="L874"> }</span>
+
+<span class="fc" id="L876"> return sb;</span>
+ }
+
+ /**
+ * Render the specified text and return the rendered Options
+ * in a StringBuffer.
+ *
+ * @param sb The StringBuffer to place the rendered text into.
+ * @param width The number of characters to display per line
+ * @param nextLineTabStop The position on the next line for the first tab.
+ * @param text The text to be rendered.
+ *
+ * @return the StringBuffer with the rendered Options contents.
+ */
+ protected StringBuffer renderWrappedText(StringBuffer sb, int width,
+ int nextLineTabStop, String text)
+ {
+<span class="fc" id="L893"> int pos = findWrapPos(text, width, 0);</span>
+
+<span class="fc bfc" id="L895" title="All 2 branches covered."> if (pos == -1)</span>
+ {
+<span class="fc" id="L897"> sb.append(rtrim(text));</span>
+
+<span class="fc" id="L899"> return sb;</span>
+ }
+<span class="fc" id="L901"> sb.append(rtrim(text.substring(0, pos))).append(getNewLine());</span>
+
+<span class="fc bfc" id="L903" title="All 2 branches covered."> if (nextLineTabStop >= width)</span>
+ {
+ // stops infinite loop happening
+<span class="fc" id="L906"> nextLineTabStop = 1;</span>
+ }
+
+ // all following lines must be padded with nextLineTabStop space characters
+<span class="fc" id="L910"> final String padding = createPadding(nextLineTabStop);</span>
+
+ while (true)
+ {
+<span class="fc" id="L914"> text = padding + text.substring(pos).trim();</span>
+<span class="fc" id="L915"> pos = findWrapPos(text, width, 0);</span>
+
+<span class="fc bfc" id="L917" title="All 2 branches covered."> if (pos == -1)</span>
+ {
+<span class="fc" id="L919"> sb.append(text);</span>
+
+<span class="fc" id="L921"> return sb;</span>
+ }
+
+<span class="fc bfc" id="L924" title="All 4 branches covered."> if (text.length() > width && pos == nextLineTabStop - 1)</span>
+ {
+<span class="fc" id="L926"> pos = width;</span>
+ }
+
+<span class="fc" id="L929"> sb.append(rtrim(text.substring(0, pos))).append(getNewLine());</span>
+ }
+ }
+
+ /**
+ * Render the specified text width a maximum width. This method differs
+ * from renderWrappedText by not removing leading spaces after a new line.
+ *
+ * @param sb The StringBuffer to place the rendered text into.
+ * @param width The number of characters to display per line
+ * @param nextLineTabStop The position on the next line for the first tab.
+ * @param text The text to be rendered.
+ */
+ private Appendable renderWrappedTextBlock(StringBuffer sb, int width, int nextLineTabStop, String text)
+ {
+ try
+ {
+<span class="fc" id="L946"> BufferedReader in = new BufferedReader(new StringReader(text));</span>
+ String line;
+<span class="fc" id="L948"> boolean firstLine = true;</span>
+<span class="fc bfc" id="L949" title="All 2 branches covered."> while ((line = in.readLine()) != null)</span>
+ {
+<span class="fc bfc" id="L951" title="All 2 branches covered."> if (!firstLine)</span>
+ {
+<span class="fc" id="L953"> sb.append(getNewLine());</span>
+ }
+ else
+ {
+<span class="fc" id="L957"> firstLine = false;</span>
+ }
+<span class="fc" id="L959"> renderWrappedText(sb, width, nextLineTabStop, line);</span>
+ }
+ }
+<span class="nc" id="L962"> catch (IOException e) //NOPMD</span>
+ {
+ // cannot happen
+<span class="fc" id="L965"> }</span>
+
+<span class="fc" id="L967"> return sb;</span>
+ }
+
+ /**
+ * Finds the next text wrap position after <code>startPos</code> for the
+ * text in <code>text</code> with the column width <code>width</code>.
+ * The wrap point is the last position before startPos+width having a
+ * whitespace character (space, \n, \r). If there is no whitespace character
+ * before startPos+width, it will return startPos+width.
+ *
+ * @param text The text being searched for the wrap position
+ * @param width width of the wrapped text
+ * @param startPos position from which to start the lookup whitespace
+ * character
+ * @return position on which the text must be wrapped or -1 if the wrap
+ * position is at the end of the text
+ */
+ protected int findWrapPos(String text, int width, int startPos)
+ {
+ // the line ends before the max wrap pos or a new line char found
+<span class="fc" id="L987"> int pos = text.indexOf('\n', startPos);</span>
+<span class="fc bfc" id="L988" title="All 4 branches covered."> if (pos != -1 && pos <= width)</span>
+ {
+<span class="fc" id="L990"> return pos + 1;</span>
+ }
+
+<span class="fc" id="L993"> pos = text.indexOf('\t', startPos);</span>
+<span class="pc bpc" id="L994" title="1 of 4 branches missed."> if (pos != -1 && pos <= width)</span>
+ {
+<span class="fc" id="L996"> return pos + 1;</span>
+ }
+
+<span class="fc bfc" id="L999" title="All 2 branches covered."> if (startPos + width >= text.length())</span>
+ {
+<span class="fc" id="L1001"> return -1;</span>
+ }
+
+ // look for the last whitespace character before startPos+width
+<span class="fc bfc" id="L1005" title="All 2 branches covered."> for (pos = startPos + width; pos >= startPos; --pos)</span>
+ {
+<span class="fc" id="L1007"> final char c = text.charAt(pos);</span>
+<span class="pc bpc" id="L1008" title="2 of 6 branches missed."> if (c == ' ' || c == '\n' || c == '\r')</span>
+ {
+<span class="nc" id="L1010"> break;</span>
+ }
+ }
+
+ // if we found it - just return
+<span class="fc bfc" id="L1015" title="All 2 branches covered."> if (pos > startPos)</span>
+ {
+<span class="fc" id="L1017"> return pos;</span>
+ }
+
+ // if we didn't find one, simply chop at startPos+width
+<span class="fc" id="L1021"> pos = startPos + width;</span>
+
+<span class="pc bpc" id="L1023" title="1 of 2 branches missed."> return pos == text.length() ? -1 : pos;</span>
+ }
+
+ /**
+ * Return a String of padding of length <code>len</code>.
+ *
+ * @param len The length of the String of padding to create.
+ *
+ * @return The String of padding
+ */
+ protected String createPadding(int len)
+ {
+<span class="fc" id="L1035"> char[] padding = new char[len];</span>
+<span class="fc" id="L1036"> Arrays.fill(padding, ' ');</span>
+
+<span class="fc" id="L1038"> return new String(padding);</span>
+ }
+
+ /**
+ * Remove the trailing whitespace from the specified String.
+ *
+ * @param s The String to remove the trailing padding from.
+ *
+ * @return The String of without the trailing padding
+ */
+ protected String rtrim(String s)
+ {
+<span class="fc bfc" id="L1050" title="All 4 branches covered."> if (s == null || s.length() == 0)</span>
+ {
+<span class="fc" id="L1052"> return s;</span>
+ }
+
+<span class="fc" id="L1055"> int pos = s.length();</span>
+
+<span class="pc bpc" id="L1057" title="1 of 4 branches missed."> while (pos > 0 && Character.isWhitespace(s.charAt(pos - 1)))</span>
+ {
+<span class="fc" id="L1059"> --pos;</span>
+ }
+
+<span class="fc" id="L1062"> return s.substring(0, pos);</span>
+ }
+
+ // ------------------------------------------------------ Package protected
+ // ---------------------------------------------------------------- Private
+ // ---------------------------------------------------------- Inner classes
+ /**
+ * This class implements the <code>Comparator</code> interface
+ * for comparing Options.
+ */
+<span class="fc" id="L1072"> private static class OptionComparator implements Comparator<Option>, Serializable</span>
+ {
+ /** The serial version UID. */
+ private static final long serialVersionUID = 5305467873966684014L;
+
+ /**
+ * Compares its two arguments for order. Returns a negative
+ * integer, zero, or a positive integer as the first argument
+ * is less than, equal to, or greater than the second.
+ *
+ * @param opt1 The first Option to be compared.
+ * @param opt2 The second Option to be compared.
+ * @return a negative integer, zero, or a positive integer as
+ * the first argument is less than, equal to, or greater than the
+ * second.
+ */
+ public int compare(Option opt1, Option opt2)
+ {
+<span class="fc" id="L1090"> return opt1.getKey().compareToIgnoreCase(opt2.getKey());</span>
+ }
+ }
+
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span></div></body></html>
\ No newline at end of file
Propchange: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/HelpFormatter.java.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingArgumentException.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingArgumentException.html (added)
+++ websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingArgumentException.html Sat May 9 18:19:15 2015
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../.resources/report.gif" type="image/gif"/><title>MissingArgumentException</title><script type="text/javascript" src="../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CLI</a> > <a href="index.html" class="el_package">org.apache.commons.cli</a> > <span class="el_class">MissingArgumentException</span></div><h1>MissingArgumentException</h1><table class="coverage" cellspacing="0" id="coverageta
ble"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 22</td><td class="ctr2">100%</td><td class="bar">0 of 0</td><td class="ctr2">n/a</td><td class="ctr1">0</td><td class="ctr2">3
</td><td class="ctr1">0</td><td class="ctr2">6</td><td class="ctr1">0</td><td class="ctr2">3</td></tr></tfoot><tbody><tr><td id="a1"><a href="MissingArgumentException.java.html#L56" class="el_method">MissingArgumentException(Option)</a></td><td class="bar" id="b0"><img src="../.resources/greenbar.gif" width="120" height="10" title="15" alt="15"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">3</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a2"><a href="MissingArgumentException.java.html#L44" class="el_method">MissingArgumentException(String)</a></td><td class="bar" id="b1"><img src="../.resources/greenbar.gif" width="32" height="10" title="4" alt="4"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0</td><td c
lass="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">2</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a0"><a href="MissingArgumentException.java.html#L69" class="el_method">getOption()</a></td><td class="bar" id="b2"><img src="../.resources/greenbar.gif" width="24" height="10" title="3" alt="3"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span></div></body></html>
\ No newline at end of file
Propchange: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingArgumentException.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingArgumentException.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingArgumentException.java.html (added)
+++ websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingArgumentException.java.html Sat May 9 18:19:15 2015
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../.resources/report.gif" type="image/gif"/><title>MissingArgumentException.java</title><link rel="stylesheet" href="../.resources/prettify.css" type="text/css"/><script type="text/javascript" src="../.resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CLI</a> > <a href="index.source.html" class="el_package">org.apache.commons.cli</a> > <span class="el_source">MissingArgumentExcepti
on.java</span></div><h1>MissingArgumentException.java</h1><pre class="source lang-java linenums">/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.commons.cli;
+
+/**
+ * Thrown when an option requiring an argument
+ * is not provided with an argument.
+ *
+ * @version $Id: MissingArgumentException.java 1443102 2013-02-06 18:12:16Z tn $
+ */
+public class MissingArgumentException extends ParseException
+{
+ /**
+ * This exception {@code serialVersionUID}.
+ */
+ private static final long serialVersionUID = -7098538588704965017L;
+
+ /** The option requiring additional arguments */
+ private Option option;
+
+ /**
+ * Construct a new <code>MissingArgumentException</code>
+ * with the specified detail message.
+ *
+ * @param message the detail message
+ */
+ public MissingArgumentException(String message)
+ {
+<span class="fc" id="L44"> super(message);</span>
+<span class="fc" id="L45"> }</span>
+
+ /**
+ * Construct a new <code>MissingArgumentException</code>
+ * with the specified detail message.
+ *
+ * @param option the option requiring an argument
+ * @since 1.2
+ */
+ public MissingArgumentException(Option option)
+ {
+<span class="fc" id="L56"> this("Missing argument for option: " + option.getKey());</span>
+<span class="fc" id="L57"> this.option = option;</span>
+<span class="fc" id="L58"> }</span>
+
+ /**
+ * Return the option requiring an argument that wasn't provided
+ * on the command line.
+ *
+ * @return the related option
+ * @since 1.2
+ */
+ public Option getOption()
+ {
+<span class="fc" id="L69"> return option;</span>
+ }
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span></div></body></html>
\ No newline at end of file
Propchange: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingArgumentException.java.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingOptionException.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingOptionException.html (added)
+++ websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingOptionException.html Sat May 9 18:19:15 2015
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../.resources/report.gif" type="image/gif"/><title>MissingOptionException</title><script type="text/javascript" src="../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CLI</a> > <a href="index.html" class="el_package">org.apache.commons.cli</a> > <span class="el_class">MissingOptionException</span></div><h1>MissingOptionException</h1><table class="coverage" cellspacing="0" id="coveragetable"><
thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 56</td><td class="ctr2">100%</td><td class="bar">0 of 6</td><td class="ctr2">100%</td><td class="ctr1">0</td><td class="ctr2">7</td>
<td class="ctr1">0</td><td class="ctr2">15</td><td class="ctr1">0</td><td class="ctr2">4</td></tr></tfoot><tbody><tr><td id="a0"><a href="MissingOptionException.java.html#L80" class="el_method">createMessage(List)</a></td><td class="bar" id="b0"><img src="../.resources/greenbar.gif" width="120" height="10" title="41" alt="41"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"><img src="../.resources/greenbar.gif" width="120" height="10" title="6" alt="6"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g0">4</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">9</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a2"><a href="MissingOptionException.java.html#L56" class="el_method">MissingOptionException(List)</a></td><td class="bar" id="b1"><img src="../.resources/greenbar.gif" width="23" height="10" title="8" alt="8"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"/><td clas
s="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">3</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a3"><a href="MissingOptionException.java.html#L44" class="el_method">MissingOptionException(String)</a></td><td class="bar" id="b2"><img src="../.resources/greenbar.gif" width="11" height="10" title="4" alt="4"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">2</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a1"><a href="MissingOptionException.java.html#L69" class="el_method">getMissingOptions()</a></td><td class="bar" id="b3"><img src="../.resources/greenbar.gif" width="8" height="10" title="3" alt="3"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id
="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i3">1</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span></div></body></html>
\ No newline at end of file
Propchange: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/MissingOptionException.html
------------------------------------------------------------------------------
svn:eol-style = native