como 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.rdoc +7 -0
- data/doc/Como/ArgsParseState.html +52 -52
- data/doc/Como/ComoCommon.html +128 -33
- data/doc/Como/MainOpt.html +52 -55
- data/doc/Como/Opt/ErrorWithData.html +15 -15
- data/doc/Como/Opt/InvalidOption.html +1 -1
- data/doc/Como/Opt/MissingArgument.html +1 -1
- data/doc/Como/Opt.html +1211 -821
- data/doc/Como/RuleCheck.html +143 -92
- data/doc/Como/RuleDisplay.html +96 -92
- data/doc/Como/Spec.html +636 -273
- data/doc/Como.html +56 -36
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +12 -2
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +113 -71
- data/doc/top-level-namespace.html +1 -1
- data/lib/como.rb +217 -102
- data/lib/version.rb +2 -7
- metadata +60 -67
- data/Rakefile +0 -59
data/doc/Como/Opt.html
CHANGED
@@ -214,12 +214,6 @@ and "value" methods.</p>
|
|
214
214
|
|
215
215
|
|
216
216
|
|
217
|
-
|
218
|
-
|
219
|
-
<h3 class="inherited">Constants inherited
|
220
|
-
from <span class='object_link'><a href="ComoCommon.html" title="Como::ComoCommon (class)">ComoCommon</a></span></h3>
|
221
|
-
<p class="inherited"><span class='object_link'><a href="ComoCommon.html#VERSION-constant" title="Como::ComoCommon::VERSION (constant)">ComoCommon::VERSION</a></span></p>
|
222
|
-
|
223
217
|
|
224
218
|
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
225
219
|
<ul class="summary">
|
@@ -1106,6 +1100,54 @@ after '--').</p>
|
|
1106
1100
|
<p>Select option object by name operator.</p>
|
1107
1101
|
</div></span>
|
1108
1102
|
|
1103
|
+
</li>
|
1104
|
+
|
1105
|
+
|
1106
|
+
<li class="public ">
|
1107
|
+
<span class="summary_signature">
|
1108
|
+
|
1109
|
+
<a href="#addOption-instance_method" title="#addOption (instance method)">- (Object) <strong>addOption</strong>(opt) </a>
|
1110
|
+
|
1111
|
+
|
1112
|
+
|
1113
|
+
</span>
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
1117
|
+
|
1118
|
+
|
1119
|
+
|
1120
|
+
|
1121
|
+
|
1122
|
+
|
1123
|
+
<span class="summary_desc"><div class='inline'>
|
1124
|
+
<p>Add subcommand option.</p>
|
1125
|
+
</div></span>
|
1126
|
+
|
1127
|
+
</li>
|
1128
|
+
|
1129
|
+
|
1130
|
+
<li class="public ">
|
1131
|
+
<span class="summary_signature">
|
1132
|
+
|
1133
|
+
<a href="#addSubcmd-instance_method" title="#addSubcmd (instance method)">- (Object) <strong>addSubcmd</strong>(cmd) </a>
|
1134
|
+
|
1135
|
+
|
1136
|
+
|
1137
|
+
</span>
|
1138
|
+
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
1142
|
+
|
1143
|
+
|
1144
|
+
|
1145
|
+
|
1146
|
+
|
1147
|
+
<span class="summary_desc"><div class='inline'>
|
1148
|
+
<p>Add subcommand subcmd.</p>
|
1149
|
+
</div></span>
|
1150
|
+
|
1109
1151
|
</li>
|
1110
1152
|
|
1111
1153
|
|
@@ -1401,7 +1443,7 @@ subcommands.</p>
|
|
1401
1443
|
<li class="public ">
|
1402
1444
|
<span class="summary_signature">
|
1403
1445
|
|
1404
|
-
<a href="#error-instance_method" title="#error (instance method)">- (Object) <strong>error</strong>(str) </a>
|
1446
|
+
<a href="#error-instance_method" title="#error (instance method)">- (Object) <strong>error</strong>(str, nl = false) </a>
|
1405
1447
|
|
1406
1448
|
|
1407
1449
|
|
@@ -1419,6 +1461,54 @@ subcommands.</p>
|
|
1419
1461
|
<p>Como error printout.</p>
|
1420
1462
|
</div></span>
|
1421
1463
|
|
1464
|
+
</li>
|
1465
|
+
|
1466
|
+
|
1467
|
+
<li class="public ">
|
1468
|
+
<span class="summary_signature">
|
1469
|
+
|
1470
|
+
<a href="#errornl-instance_method" title="#errornl (instance method)">- (Object) <strong>errornl</strong>(str) </a>
|
1471
|
+
|
1472
|
+
|
1473
|
+
|
1474
|
+
</span>
|
1475
|
+
|
1476
|
+
|
1477
|
+
|
1478
|
+
|
1479
|
+
|
1480
|
+
|
1481
|
+
|
1482
|
+
|
1483
|
+
|
1484
|
+
<span class="summary_desc"><div class='inline'>
|
1485
|
+
<p>Como error printout with pre-newline.</p>
|
1486
|
+
</div></span>
|
1487
|
+
|
1488
|
+
</li>
|
1489
|
+
|
1490
|
+
|
1491
|
+
<li class="public ">
|
1492
|
+
<span class="summary_signature">
|
1493
|
+
|
1494
|
+
<a href="#fatal-instance_method" title="#fatal (instance method)">- (Object) <strong>fatal</strong>(str) </a>
|
1495
|
+
|
1496
|
+
|
1497
|
+
|
1498
|
+
</span>
|
1499
|
+
|
1500
|
+
|
1501
|
+
|
1502
|
+
|
1503
|
+
|
1504
|
+
|
1505
|
+
|
1506
|
+
|
1507
|
+
|
1508
|
+
<span class="summary_desc"><div class='inline'>
|
1509
|
+
<p>Como error printout with immediate exit.</p>
|
1510
|
+
</div></span>
|
1511
|
+
|
1422
1512
|
</li>
|
1423
1513
|
|
1424
1514
|
|
@@ -1562,11 +1652,7 @@ subcommands.</p>
|
|
1562
1652
|
|
1563
1653
|
|
1564
1654
|
<span class="summary_desc"><div class='inline'>
|
1565
|
-
<p>Create Opt object
|
1566
|
-
<dl class="rdoc-list"><dt>name</dt>
|
1567
|
-
<dd>
|
1568
|
-
<p>Option name string.</p>
|
1569
|
-
</dd></dl>
|
1655
|
+
<p>Create Opt object.</p>
|
1570
1656
|
</div></span>
|
1571
1657
|
|
1572
1658
|
</li>
|
@@ -1719,7 +1805,7 @@ subcommands.</p>
|
|
1719
1805
|
<li class="public ">
|
1720
1806
|
<span class="summary_signature">
|
1721
1807
|
|
1722
|
-
<a href="#
|
1808
|
+
<a href="#setOptionSubcmd-instance_method" title="#setOptionSubcmd (instance method)">- (Object) <strong>setOptionSubcmd</strong>(opts, subs) </a>
|
1723
1809
|
|
1724
1810
|
|
1725
1811
|
|
@@ -1734,7 +1820,7 @@ subcommands.</p>
|
|
1734
1820
|
|
1735
1821
|
|
1736
1822
|
<span class="summary_desc"><div class='inline'>
|
1737
|
-
<p>Set
|
1823
|
+
<p>Set command (subcommand) suboptions and subcmds.</p>
|
1738
1824
|
</div></span>
|
1739
1825
|
|
1740
1826
|
</li>
|
@@ -1743,7 +1829,7 @@ subcommands.</p>
|
|
1743
1829
|
<li class="public ">
|
1744
1830
|
<span class="summary_signature">
|
1745
1831
|
|
1746
|
-
<a href="#
|
1832
|
+
<a href="#setRuleCheck-instance_method" title="#setRuleCheck (instance method)">- (Object) <strong>setRuleCheck</strong>(&rule) </a>
|
1747
1833
|
|
1748
1834
|
|
1749
1835
|
|
@@ -1758,7 +1844,7 @@ subcommands.</p>
|
|
1758
1844
|
|
1759
1845
|
|
1760
1846
|
<span class="summary_desc"><div class='inline'>
|
1761
|
-
<p>Set
|
1847
|
+
<p>Set rule checks for the option.</p>
|
1762
1848
|
</div></span>
|
1763
1849
|
|
1764
1850
|
</li>
|
@@ -2033,15 +2119,58 @@ subcommands.</p>
|
|
2033
2119
|
</h3><div class="docstring">
|
2034
2120
|
<div class="discussion">
|
2035
2121
|
|
2036
|
-
<p>Create Opt object
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
</
|
2041
|
-
<
|
2042
|
-
<p>
|
2043
|
-
|
2044
|
-
|
2122
|
+
<p>Create Opt object.</p>
|
2123
|
+
|
2124
|
+
|
2125
|
+
</div>
|
2126
|
+
</div>
|
2127
|
+
<div class="tags">
|
2128
|
+
<p class="tag_title">Parameters:</p>
|
2129
|
+
<ul class="param">
|
2130
|
+
|
2131
|
+
<li>
|
2132
|
+
|
2133
|
+
<span class='name'>name</span>
|
2134
|
+
|
2135
|
+
|
2136
|
+
<span class='type'>(<tt>String</tt>)</span>
|
2137
|
+
|
2138
|
+
|
2139
|
+
|
2140
|
+
—
|
2141
|
+
<div class='inline'>
|
2142
|
+
<p>Option name.</p>
|
2143
|
+
</div>
|
2144
|
+
|
2145
|
+
</li>
|
2146
|
+
|
2147
|
+
<li>
|
2148
|
+
|
2149
|
+
<span class='name'>opt</span>
|
2150
|
+
|
2151
|
+
|
2152
|
+
<span class='type'>(<tt>String</tt>)</span>
|
2153
|
+
|
2154
|
+
|
2155
|
+
|
2156
|
+
—
|
2157
|
+
<div class='inline'>
|
2158
|
+
<p>Switch.</p>
|
2159
|
+
</div>
|
2160
|
+
|
2161
|
+
</li>
|
2162
|
+
|
2163
|
+
<li>
|
2164
|
+
|
2165
|
+
<span class='name'>type</span>
|
2166
|
+
|
2167
|
+
|
2168
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
2169
|
+
|
2170
|
+
|
2171
|
+
|
2172
|
+
—
|
2173
|
+
<div class='inline'>
|
2045
2174
|
<p>Option type. One of:</p>
|
2046
2175
|
<ul><li>
|
2047
2176
|
<p>:switch</p>
|
@@ -2062,19 +2191,46 @@ subcommands.</p>
|
|
2062
2191
|
</li><li>
|
2063
2192
|
<p>:silent</p>
|
2064
2193
|
</li></ul>
|
2065
|
-
</
|
2066
|
-
|
2194
|
+
</div>
|
2195
|
+
|
2196
|
+
</li>
|
2197
|
+
|
2198
|
+
<li>
|
2199
|
+
|
2200
|
+
<span class='name'>doc</span>
|
2201
|
+
|
2202
|
+
|
2203
|
+
<span class='type'>(<tt>String</tt>)</span>
|
2204
|
+
|
2205
|
+
|
2206
|
+
|
2207
|
+
—
|
2208
|
+
<div class='inline'>
|
2067
2209
|
<p>Option documentation.</p>
|
2068
|
-
</
|
2069
|
-
|
2210
|
+
</div>
|
2211
|
+
|
2212
|
+
</li>
|
2213
|
+
|
2214
|
+
<li>
|
2215
|
+
|
2216
|
+
<span class='name'>value</span>
|
2217
|
+
|
2218
|
+
|
2219
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
2220
|
+
|
2221
|
+
|
2222
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2223
|
+
|
2224
|
+
|
2225
|
+
—
|
2226
|
+
<div class='inline'>
|
2070
2227
|
<p>Default value.</p>
|
2071
|
-
</dd></dl>
|
2072
|
-
|
2073
|
-
|
2074
|
-
</div>
|
2075
2228
|
</div>
|
2076
|
-
|
2229
|
+
|
2230
|
+
</li>
|
2077
2231
|
|
2232
|
+
</ul>
|
2233
|
+
|
2078
2234
|
|
2079
2235
|
</div><table class="source_code">
|
2080
2236
|
<tr>
|
@@ -2082,27 +2238,32 @@ subcommands.</p>
|
|
2082
2238
|
<pre class="lines">
|
2083
2239
|
|
2084
2240
|
|
2085
|
-
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2091
|
-
|
2092
|
-
|
2093
|
-
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
|
2102
|
-
|
2241
|
+
1100
|
2242
|
+
1101
|
2243
|
+
1102
|
2244
|
+
1103
|
2245
|
+
1104
|
2246
|
+
1105
|
2247
|
+
1106
|
2248
|
+
1107
|
2249
|
+
1108
|
2250
|
+
1109
|
2251
|
+
1110
|
2252
|
+
1111
|
2253
|
+
1112
|
2254
|
+
1113
|
2255
|
+
1114
|
2256
|
+
1115
|
2257
|
+
1116
|
2258
|
+
1117
|
2259
|
+
1118
|
2260
|
+
1119
|
2261
|
+
1120
|
2262
|
+
1121
|
2263
|
+
1122</pre>
|
2103
2264
|
</td>
|
2104
2265
|
<td>
|
2105
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2266
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1100</span>
|
2106
2267
|
|
2107
2268
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opt'>opt</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_doc'>doc</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
2108
2269
|
<span class='ivar'>@parent</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
@@ -2111,11 +2272,16 @@ subcommands.</p>
|
|
2111
2272
|
<span class='ivar'>@longOpt</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>--</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
2112
2273
|
<span class='ivar'>@type</span> <span class='op'>=</span> <span class='id identifier rubyid_type'>type</span>
|
2113
2274
|
<span class='ivar'>@value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
2275
|
+
|
2276
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_hasMany'>hasMany</span> <span class='op'>&&</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>==</span> <span class='kw'>nil</span>
|
2277
|
+
<span class='ivar'>@value</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2278
|
+
<span class='kw'>end</span>
|
2279
|
+
|
2114
2280
|
<span class='ivar'>@doc</span> <span class='op'>=</span> <span class='id identifier rubyid_doc'>doc</span>
|
2115
2281
|
<span class='comment'># Whether option was set or not.
|
2116
2282
|
</span> <span class='ivar'>@given</span> <span class='op'>=</span> <span class='kw'>false</span>
|
2117
|
-
<span class='ivar'>@subopt</span> <span class='op'>=</span> <span class='
|
2118
|
-
<span class='ivar'>@subcmd</span> <span class='op'>=</span> <span class='
|
2283
|
+
<span class='ivar'>@subopt</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2284
|
+
<span class='ivar'>@subcmd</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
2119
2285
|
<span class='ivar'>@rules</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
2120
2286
|
|
2121
2287
|
<span class='ivar'>@config</span> <span class='op'>=</span> <span class='cvar'>@@config</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
@@ -2160,12 +2326,12 @@ subcommands.</p>
|
|
2160
2326
|
<pre class="lines">
|
2161
2327
|
|
2162
2328
|
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2329
|
+
1079
|
2330
|
+
1080
|
2331
|
+
1081</pre>
|
2166
2332
|
</td>
|
2167
2333
|
<td>
|
2168
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2334
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1079</span>
|
2169
2335
|
|
2170
2336
|
<span class='kw'>def</span> <span class='id identifier rubyid_config'>config</span>
|
2171
2337
|
<span class='ivar'>@config</span>
|
@@ -2203,12 +2369,12 @@ subcommands.</p>
|
|
2203
2369
|
<pre class="lines">
|
2204
2370
|
|
2205
2371
|
|
2206
|
-
|
2207
|
-
|
2208
|
-
|
2372
|
+
1067
|
2373
|
+
1068
|
2374
|
+
1069</pre>
|
2209
2375
|
</td>
|
2210
2376
|
<td>
|
2211
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2377
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1067</span>
|
2212
2378
|
|
2213
2379
|
<span class='kw'>def</span> <span class='id identifier rubyid_doc'>doc</span>
|
2214
2380
|
<span class='ivar'>@doc</span>
|
@@ -2274,24 +2440,24 @@ given.</p>
|
|
2274
2440
|
<pre class="lines">
|
2275
2441
|
|
2276
2442
|
|
2277
|
-
|
2278
|
-
|
2279
|
-
|
2280
|
-
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
|
2287
|
-
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2443
|
+
1526
|
2444
|
+
1527
|
2445
|
+
1528
|
2446
|
+
1529
|
2447
|
+
1530
|
2448
|
+
1531
|
2449
|
+
1532
|
2450
|
+
1533
|
2451
|
+
1534
|
2452
|
+
1535
|
2453
|
+
1536
|
2454
|
+
1537
|
2455
|
+
1538
|
2456
|
+
1539
|
2457
|
+
1540</pre>
|
2292
2458
|
</td>
|
2293
2459
|
<td>
|
2294
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2460
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1526</span>
|
2295
2461
|
|
2296
2462
|
<span class='kw'>def</span> <span class='id identifier rubyid_given'>given</span><span class='lparen'>(</span> <span class='id identifier rubyid_yieldOpt'>yieldOpt</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_prog'>prog</span> <span class='rparen'>)</span>
|
2297
2463
|
<span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
@@ -2341,12 +2507,12 @@ given.</p>
|
|
2341
2507
|
<pre class="lines">
|
2342
2508
|
|
2343
2509
|
|
2344
|
-
|
2345
|
-
|
2346
|
-
|
2510
|
+
1058
|
2511
|
+
1059
|
2512
|
+
1060</pre>
|
2347
2513
|
</td>
|
2348
2514
|
<td>
|
2349
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2515
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1058</span>
|
2350
2516
|
|
2351
2517
|
<span class='kw'>def</span> <span class='id identifier rubyid_longOpt'>longOpt</span>
|
2352
2518
|
<span class='ivar'>@longOpt</span>
|
@@ -2384,12 +2550,12 @@ given.</p>
|
|
2384
2550
|
<pre class="lines">
|
2385
2551
|
|
2386
2552
|
|
2387
|
-
|
2388
|
-
|
2389
|
-
|
2553
|
+
1052
|
2554
|
+
1053
|
2555
|
+
1054</pre>
|
2390
2556
|
</td>
|
2391
2557
|
<td>
|
2392
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2558
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1052</span>
|
2393
2559
|
|
2394
2560
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
2395
2561
|
<span class='ivar'>@name</span>
|
@@ -2427,12 +2593,12 @@ given.</p>
|
|
2427
2593
|
<pre class="lines">
|
2428
2594
|
|
2429
2595
|
|
2430
|
-
|
2431
|
-
|
2432
|
-
|
2596
|
+
1048
|
2597
|
+
1049
|
2598
|
+
1050</pre>
|
2433
2599
|
</td>
|
2434
2600
|
<td>
|
2435
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2601
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1048</span>
|
2436
2602
|
|
2437
2603
|
<span class='kw'>def</span> <span class='id identifier rubyid_parent'>parent</span>
|
2438
2604
|
<span class='ivar'>@parent</span>
|
@@ -2470,12 +2636,12 @@ given.</p>
|
|
2470
2636
|
<pre class="lines">
|
2471
2637
|
|
2472
2638
|
|
2473
|
-
|
2474
|
-
|
2475
|
-
|
2639
|
+
1082
|
2640
|
+
1083
|
2641
|
+
1084</pre>
|
2476
2642
|
</td>
|
2477
2643
|
<td>
|
2478
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2644
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1082</span>
|
2479
2645
|
|
2480
2646
|
<span class='kw'>def</span> <span class='id identifier rubyid_rules'>rules</span>
|
2481
2647
|
<span class='ivar'>@rules</span>
|
@@ -2513,12 +2679,12 @@ given.</p>
|
|
2513
2679
|
<pre class="lines">
|
2514
2680
|
|
2515
2681
|
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2682
|
+
1055
|
2683
|
+
1056
|
2684
|
+
1057</pre>
|
2519
2685
|
</td>
|
2520
2686
|
<td>
|
2521
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2687
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1055</span>
|
2522
2688
|
|
2523
2689
|
<span class='kw'>def</span> <span class='id identifier rubyid_shortOpt'>shortOpt</span>
|
2524
2690
|
<span class='ivar'>@shortOpt</span>
|
@@ -2556,12 +2722,12 @@ given.</p>
|
|
2556
2722
|
<pre class="lines">
|
2557
2723
|
|
2558
2724
|
|
2559
|
-
|
2560
|
-
|
2561
|
-
|
2725
|
+
1076
|
2726
|
+
1077
|
2727
|
+
1078</pre>
|
2562
2728
|
</td>
|
2563
2729
|
<td>
|
2564
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2730
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1076</span>
|
2565
2731
|
|
2566
2732
|
<span class='kw'>def</span> <span class='id identifier rubyid_subcmd'>subcmd</span>
|
2567
2733
|
<span class='ivar'>@subcmd</span>
|
@@ -2599,12 +2765,12 @@ given.</p>
|
|
2599
2765
|
<pre class="lines">
|
2600
2766
|
|
2601
2767
|
|
2602
|
-
|
2603
|
-
|
2604
|
-
|
2768
|
+
1073
|
2769
|
+
1074
|
2770
|
+
1075</pre>
|
2605
2771
|
</td>
|
2606
2772
|
<td>
|
2607
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2773
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1073</span>
|
2608
2774
|
|
2609
2775
|
<span class='kw'>def</span> <span class='id identifier rubyid_subopt'>subopt</span>
|
2610
2776
|
<span class='ivar'>@subopt</span>
|
@@ -2642,12 +2808,12 @@ given.</p>
|
|
2642
2808
|
<pre class="lines">
|
2643
2809
|
|
2644
2810
|
|
2645
|
-
|
2646
|
-
|
2647
|
-
|
2811
|
+
1061
|
2812
|
+
1062
|
2813
|
+
1063</pre>
|
2648
2814
|
</td>
|
2649
2815
|
<td>
|
2650
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2816
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1061</span>
|
2651
2817
|
|
2652
2818
|
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
|
2653
2819
|
<span class='ivar'>@type</span>
|
@@ -2685,12 +2851,12 @@ given.</p>
|
|
2685
2851
|
<pre class="lines">
|
2686
2852
|
|
2687
2853
|
|
2688
|
-
|
2689
|
-
|
2690
|
-
|
2854
|
+
1064
|
2855
|
+
1065
|
2856
|
+
1066</pre>
|
2691
2857
|
</td>
|
2692
2858
|
<td>
|
2693
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2859
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1064</span>
|
2694
2860
|
|
2695
2861
|
<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
|
2696
2862
|
<span class='ivar'>@value</span>
|
@@ -2734,23 +2900,23 @@ list of all options.</p>
|
|
2734
2900
|
<pre class="lines">
|
2735
2901
|
|
2736
2902
|
|
2737
|
-
|
2738
|
-
|
2739
|
-
|
2740
|
-
|
2741
|
-
|
2742
|
-
|
2743
|
-
|
2744
|
-
|
2745
|
-
|
2746
|
-
|
2747
|
-
|
2748
|
-
|
2749
|
-
|
2750
|
-
|
2903
|
+
948
|
2904
|
+
949
|
2905
|
+
950
|
2906
|
+
951
|
2907
|
+
952
|
2908
|
+
953
|
2909
|
+
954
|
2910
|
+
955
|
2911
|
+
956
|
2912
|
+
957
|
2913
|
+
958
|
2914
|
+
959
|
2915
|
+
960
|
2916
|
+
961</pre>
|
2751
2917
|
</td>
|
2752
2918
|
<td>
|
2753
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2919
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 948</span>
|
2754
2920
|
|
2755
2921
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='rparen'>)</span>
|
2756
2922
|
|
@@ -2797,12 +2963,12 @@ list of all options.</p>
|
|
2797
2963
|
<pre class="lines">
|
2798
2964
|
|
2799
2965
|
|
2800
|
-
|
2801
|
-
|
2802
|
-
|
2803
|
-
</td>
|
2966
|
+
912
|
2967
|
+
913
|
2968
|
+
914</pre>
|
2969
|
+
</td>
|
2804
2970
|
<td>
|
2805
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2971
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 912</span>
|
2806
2972
|
|
2807
2973
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_addOpt'>addOpt</span><span class='lparen'>(</span> <span class='id identifier rubyid_opt'>opt</span> <span class='rparen'>)</span>
|
2808
2974
|
<span class='cvar'>@@opts</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span> <span class='id identifier rubyid_opt'>opt</span>
|
@@ -2838,12 +3004,12 @@ list of all options.</p>
|
|
2838
3004
|
<pre class="lines">
|
2839
3005
|
|
2840
3006
|
|
2841
|
-
|
2842
|
-
|
2843
|
-
|
3007
|
+
977
|
3008
|
+
978
|
3009
|
+
979</pre>
|
2844
3010
|
</td>
|
2845
3011
|
<td>
|
2846
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3012
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 977</span>
|
2847
3013
|
|
2848
3014
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_author'>author</span>
|
2849
3015
|
<span class='cvar'>@@main</span><span class='period'>.</span><span class='id identifier rubyid_author'>author</span>
|
@@ -2879,12 +3045,12 @@ list of all options.</p>
|
|
2879
3045
|
<pre class="lines">
|
2880
3046
|
|
2881
3047
|
|
2882
|
-
|
2883
|
-
|
2884
|
-
|
3048
|
+
1030
|
3049
|
+
1031
|
3050
|
+
1032</pre>
|
2885
3051
|
</td>
|
2886
3052
|
<td>
|
2887
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3053
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1030</span>
|
2888
3054
|
|
2889
3055
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_configGet'>configGet</span>
|
2890
3056
|
<span class='cvar'>@@config</span>
|
@@ -2920,12 +3086,12 @@ list of all options.</p>
|
|
2920
3086
|
<pre class="lines">
|
2921
3087
|
|
2922
3088
|
|
2923
|
-
|
2924
|
-
|
2925
|
-
|
3089
|
+
1024
|
3090
|
+
1025
|
3091
|
+
1026</pre>
|
2926
3092
|
</td>
|
2927
3093
|
<td>
|
2928
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3094
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1024</span>
|
2929
3095
|
|
2930
3096
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_configOverlay'>configOverlay</span><span class='lparen'>(</span> <span class='id identifier rubyid_config'>config</span> <span class='rparen'>)</span>
|
2931
3097
|
<span class='cvar'>@@config</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span> <span class='id identifier rubyid_config'>config</span> <span class='rparen'>)</span>
|
@@ -2962,12 +3128,12 @@ list of all options.</p>
|
|
2962
3128
|
<pre class="lines">
|
2963
3129
|
|
2964
3130
|
|
2965
|
-
|
2966
|
-
|
2967
|
-
|
3131
|
+
1037
|
3132
|
+
1038
|
3133
|
+
1039</pre>
|
2968
3134
|
</td>
|
2969
3135
|
<td>
|
2970
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3136
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1037</span>
|
2971
3137
|
|
2972
3138
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_configSet'>configSet</span><span class='lparen'>(</span> <span class='id identifier rubyid_config'>config</span> <span class='rparen'>)</span>
|
2973
3139
|
<span class='cvar'>@@config</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span>
|
@@ -3003,12 +3169,12 @@ list of all options.</p>
|
|
3003
3169
|
<pre class="lines">
|
3004
3170
|
|
3005
3171
|
|
3006
|
-
|
3007
|
-
|
3008
|
-
|
3172
|
+
924
|
3173
|
+
925
|
3174
|
+
926</pre>
|
3009
3175
|
</td>
|
3010
3176
|
<td>
|
3011
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3177
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 924</span>
|
3012
3178
|
|
3013
3179
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span>
|
3014
3180
|
<span class='cvar'>@@subcmd</span>
|
@@ -3044,12 +3210,12 @@ list of all options.</p>
|
|
3044
3210
|
<pre class="lines">
|
3045
3211
|
|
3046
3212
|
|
3047
|
-
|
3048
|
-
|
3049
|
-
|
3213
|
+
990
|
3214
|
+
991
|
3215
|
+
992</pre>
|
3050
3216
|
</td>
|
3051
3217
|
<td>
|
3052
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3218
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 990</span>
|
3053
3219
|
|
3054
3220
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_default'>default</span>
|
3055
3221
|
<span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_main'>main</span><span class='period'>.</span><span class='id identifier rubyid_default'>default</span>
|
@@ -3085,12 +3251,12 @@ list of all options.</p>
|
|
3085
3251
|
<pre class="lines">
|
3086
3252
|
|
3087
3253
|
|
3088
|
-
|
3089
|
-
|
3090
|
-
|
3254
|
+
1006
|
3255
|
+
1007
|
3256
|
+
1008</pre>
|
3091
3257
|
</td>
|
3092
3258
|
<td>
|
3093
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3259
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1006</span>
|
3094
3260
|
|
3095
3261
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_defaultOpt'>defaultOpt</span><span class='lparen'>(</span> <span class='id identifier rubyid_doc'>doc</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>No doc.</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
3096
3262
|
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'><default></span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'><default></span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='symbol'>:default</span><span class='comma'>,</span> <span class='id identifier rubyid_doc'>doc</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
|
@@ -3126,12 +3292,12 @@ list of all options.</p>
|
|
3126
3292
|
<pre class="lines">
|
3127
3293
|
|
3128
3294
|
|
3129
|
-
|
3130
|
-
|
3131
|
-
|
3295
|
+
1012
|
3296
|
+
1013
|
3297
|
+
1014</pre>
|
3132
3298
|
</td>
|
3133
3299
|
<td>
|
3134
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3300
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1012</span>
|
3135
3301
|
|
3136
3302
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
3137
3303
|
<span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_main'>main</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span>
|
@@ -3167,12 +3333,12 @@ list of all options.</p>
|
|
3167
3333
|
<pre class="lines">
|
3168
3334
|
|
3169
3335
|
|
3170
|
-
|
3171
|
-
|
3172
|
-
|
3336
|
+
1018
|
3337
|
+
1019
|
3338
|
+
1020</pre>
|
3173
3339
|
</td>
|
3174
3340
|
<td>
|
3175
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3341
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1018</span>
|
3176
3342
|
|
3177
3343
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_each_given'>each_given</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
3178
3344
|
<span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_main'>main</span><span class='period'>.</span><span class='id identifier rubyid_each_given'>each_given</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
@@ -3209,12 +3375,12 @@ after '--').</p>
|
|
3209
3375
|
<pre class="lines">
|
3210
3376
|
|
3211
3377
|
|
3212
|
-
|
3213
|
-
|
3214
|
-
|
3378
|
+
984
|
3379
|
+
985
|
3380
|
+
986</pre>
|
3215
3381
|
</td>
|
3216
3382
|
<td>
|
3217
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3383
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 984</span>
|
3218
3384
|
|
3219
3385
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_external'>external</span>
|
3220
3386
|
<span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_main'>main</span><span class='period'>.</span><span class='id identifier rubyid_external'>external</span>
|
@@ -3250,17 +3416,17 @@ after '--').</p>
|
|
3250
3416
|
<pre class="lines">
|
3251
3417
|
|
3252
3418
|
|
3253
|
-
|
3254
|
-
|
3255
|
-
|
3256
|
-
|
3257
|
-
|
3258
|
-
|
3259
|
-
|
3260
|
-
|
3419
|
+
930
|
3420
|
+
931
|
3421
|
+
932
|
3422
|
+
933
|
3423
|
+
934
|
3424
|
+
935
|
3425
|
+
936
|
3426
|
+
937</pre>
|
3261
3427
|
</td>
|
3262
3428
|
<td>
|
3263
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3429
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 930</span>
|
3264
3430
|
|
3265
3431
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_findOpt'>findOpt</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span> <span class='rparen'>)</span>
|
3266
3432
|
<span class='id identifier rubyid_idx'>idx</span> <span class='op'>=</span> <span class='cvar'>@@opts</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='id identifier rubyid_name'>name</span> <span class='kw'>end</span>
|
@@ -3301,12 +3467,12 @@ after '--').</p>
|
|
3301
3467
|
<pre class="lines">
|
3302
3468
|
|
3303
3469
|
|
3304
|
-
|
3305
|
-
|
3306
|
-
|
3470
|
+
996
|
3471
|
+
997
|
3472
|
+
998</pre>
|
3307
3473
|
</td>
|
3308
3474
|
<td>
|
3309
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3475
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 996</span>
|
3310
3476
|
|
3311
3477
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_full'>full</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opt'>opt</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_doc'>doc</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>No doc.</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
3312
3478
|
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opt'>opt</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_doc'>doc</span> <span class='rparen'>)</span>
|
@@ -3342,12 +3508,12 @@ after '--').</p>
|
|
3342
3508
|
<pre class="lines">
|
3343
3509
|
|
3344
3510
|
|
3345
|
-
|
3346
|
-
|
3347
|
-
|
3511
|
+
906
|
3512
|
+
907
|
3513
|
+
908</pre>
|
3348
3514
|
</td>
|
3349
3515
|
<td>
|
3350
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3516
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 906</span>
|
3351
3517
|
|
3352
3518
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_main'>main</span>
|
3353
3519
|
<span class='cvar'>@@main</span>
|
@@ -3383,12 +3549,12 @@ after '--').</p>
|
|
3383
3549
|
<pre class="lines">
|
3384
3550
|
|
3385
3551
|
|
3386
|
-
|
3387
|
-
|
3388
|
-
|
3552
|
+
965
|
3553
|
+
966
|
3554
|
+
967</pre>
|
3389
3555
|
</td>
|
3390
3556
|
<td>
|
3391
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3557
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 965</span>
|
3392
3558
|
|
3393
3559
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_progname'>progname</span>
|
3394
3560
|
<span class='cvar'>@@main</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span>
|
@@ -3424,12 +3590,12 @@ after '--').</p>
|
|
3424
3590
|
<pre class="lines">
|
3425
3591
|
|
3426
3592
|
|
3427
|
-
|
3428
|
-
|
3429
|
-
|
3593
|
+
941
|
3594
|
+
942
|
3595
|
+
943</pre>
|
3430
3596
|
</td>
|
3431
3597
|
<td>
|
3432
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3598
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 941</span>
|
3433
3599
|
|
3434
3600
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_reset'>reset</span>
|
3435
3601
|
<span class='cvar'>@@opts</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -3465,13 +3631,13 @@ after '--').</p>
|
|
3465
3631
|
<pre class="lines">
|
3466
3632
|
|
3467
3633
|
|
3468
|
-
|
3469
|
-
|
3470
|
-
|
3471
|
-
|
3634
|
+
900
|
3635
|
+
901
|
3636
|
+
902
|
3637
|
+
903</pre>
|
3472
3638
|
</td>
|
3473
3639
|
<td>
|
3474
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3640
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 900</span>
|
3475
3641
|
|
3476
3642
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_setMain'>setMain</span><span class='lparen'>(</span> <span class='id identifier rubyid_main'>main</span> <span class='rparen'>)</span>
|
3477
3643
|
<span class='cvar'>@@main</span> <span class='op'>=</span> <span class='id identifier rubyid_main'>main</span>
|
@@ -3508,12 +3674,12 @@ after '--').</p>
|
|
3508
3674
|
<pre class="lines">
|
3509
3675
|
|
3510
3676
|
|
3511
|
-
|
3512
|
-
|
3513
|
-
|
3677
|
+
918
|
3678
|
+
919
|
3679
|
+
920</pre>
|
3514
3680
|
</td>
|
3515
3681
|
<td>
|
3516
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3682
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 918</span>
|
3517
3683
|
|
3518
3684
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_setSubcmd'>setSubcmd</span><span class='lparen'>(</span> <span class='id identifier rubyid_opt'>opt</span> <span class='rparen'>)</span>
|
3519
3685
|
<span class='cvar'>@@subcmd</span> <span class='op'>=</span> <span class='id identifier rubyid_opt'>opt</span>
|
@@ -3549,12 +3715,12 @@ after '--').</p>
|
|
3549
3715
|
<pre class="lines">
|
3550
3716
|
|
3551
3717
|
|
3552
|
-
|
3553
|
-
|
3554
|
-
|
3718
|
+
1001
|
3719
|
+
1002
|
3720
|
+
1003</pre>
|
3555
3721
|
</td>
|
3556
3722
|
<td>
|
3557
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3723
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1001</span>
|
3558
3724
|
|
3559
3725
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_subcmd'>subcmd</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_doc'>doc</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>No doc.</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
3560
3726
|
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='symbol'>:subcmd</span><span class='comma'>,</span> <span class='id identifier rubyid_doc'>doc</span><span class='comma'>,</span> <span class='kw'>false</span> <span class='rparen'>)</span>
|
@@ -3590,12 +3756,12 @@ after '--').</p>
|
|
3590
3756
|
<pre class="lines">
|
3591
3757
|
|
3592
3758
|
|
3593
|
-
|
3594
|
-
|
3595
|
-
|
3759
|
+
971
|
3760
|
+
972
|
3761
|
+
973</pre>
|
3596
3762
|
</td>
|
3597
3763
|
<td>
|
3598
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3764
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 971</span>
|
3599
3765
|
|
3600
3766
|
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span>
|
3601
3767
|
<span class='cvar'>@@main</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span>
|
@@ -3637,16 +3803,16 @@ after '--').</p>
|
|
3637
3803
|
<pre class="lines">
|
3638
3804
|
|
3639
3805
|
|
3640
|
-
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3644
|
-
|
3645
|
-
|
3646
|
-
|
3806
|
+
1452
|
3807
|
+
1453
|
3808
|
+
1454
|
3809
|
+
1455
|
3810
|
+
1456
|
3811
|
+
1457
|
3812
|
+
1458</pre>
|
3647
3813
|
</td>
|
3648
3814
|
<td>
|
3649
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3815
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1452</span>
|
3650
3816
|
|
3651
3817
|
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
3652
3818
|
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='id identifier rubyid_argByName'>argByName</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
@@ -3658,6 +3824,132 @@ after '--').</p>
|
|
3658
3824
|
</td>
|
3659
3825
|
</tr>
|
3660
3826
|
</table>
|
3827
|
+
</div>
|
3828
|
+
|
3829
|
+
<div class="method_details ">
|
3830
|
+
<h3 class="signature " id="addOption-instance_method">
|
3831
|
+
|
3832
|
+
- (<tt>Object</tt>) <strong>addOption</strong>(opt)
|
3833
|
+
|
3834
|
+
|
3835
|
+
|
3836
|
+
|
3837
|
+
|
3838
|
+
</h3><div class="docstring">
|
3839
|
+
<div class="discussion">
|
3840
|
+
|
3841
|
+
<p>Add subcommand option.</p>
|
3842
|
+
|
3843
|
+
|
3844
|
+
</div>
|
3845
|
+
</div>
|
3846
|
+
<div class="tags">
|
3847
|
+
<p class="tag_title">Parameters:</p>
|
3848
|
+
<ul class="param">
|
3849
|
+
|
3850
|
+
<li>
|
3851
|
+
|
3852
|
+
<span class='name'>opt</span>
|
3853
|
+
|
3854
|
+
|
3855
|
+
<span class='type'>(<tt>Option</tt>)</span>
|
3856
|
+
|
3857
|
+
|
3858
|
+
|
3859
|
+
—
|
3860
|
+
<div class='inline'>
|
3861
|
+
<p>Option to add.</p>
|
3862
|
+
</div>
|
3863
|
+
|
3864
|
+
</li>
|
3865
|
+
|
3866
|
+
</ul>
|
3867
|
+
|
3868
|
+
|
3869
|
+
</div><table class="source_code">
|
3870
|
+
<tr>
|
3871
|
+
<td>
|
3872
|
+
<pre class="lines">
|
3873
|
+
|
3874
|
+
|
3875
|
+
1142
|
3876
|
+
1143
|
3877
|
+
1144
|
3878
|
+
1145</pre>
|
3879
|
+
</td>
|
3880
|
+
<td>
|
3881
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1142</span>
|
3882
|
+
|
3883
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_addOption'>addOption</span><span class='lparen'>(</span> <span class='id identifier rubyid_opt'>opt</span> <span class='rparen'>)</span>
|
3884
|
+
<span class='id identifier rubyid_opt'>opt</span><span class='period'>.</span><span class='id identifier rubyid_parent'>parent</span> <span class='op'>=</span> <span class='kw'>self</span>
|
3885
|
+
<span class='ivar'>@subopt</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span> <span class='id identifier rubyid_opt'>opt</span>
|
3886
|
+
<span class='kw'>end</span></pre>
|
3887
|
+
</td>
|
3888
|
+
</tr>
|
3889
|
+
</table>
|
3890
|
+
</div>
|
3891
|
+
|
3892
|
+
<div class="method_details ">
|
3893
|
+
<h3 class="signature " id="addSubcmd-instance_method">
|
3894
|
+
|
3895
|
+
- (<tt>Object</tt>) <strong>addSubcmd</strong>(cmd)
|
3896
|
+
|
3897
|
+
|
3898
|
+
|
3899
|
+
|
3900
|
+
|
3901
|
+
</h3><div class="docstring">
|
3902
|
+
<div class="discussion">
|
3903
|
+
|
3904
|
+
<p>Add subcommand subcmd.</p>
|
3905
|
+
|
3906
|
+
|
3907
|
+
</div>
|
3908
|
+
</div>
|
3909
|
+
<div class="tags">
|
3910
|
+
<p class="tag_title">Parameters:</p>
|
3911
|
+
<ul class="param">
|
3912
|
+
|
3913
|
+
<li>
|
3914
|
+
|
3915
|
+
<span class='name'>cmd</span>
|
3916
|
+
|
3917
|
+
|
3918
|
+
<span class='type'>(<tt>Option</tt>)</span>
|
3919
|
+
|
3920
|
+
|
3921
|
+
|
3922
|
+
—
|
3923
|
+
<div class='inline'>
|
3924
|
+
<p>Subcmd to add.</p>
|
3925
|
+
</div>
|
3926
|
+
|
3927
|
+
</li>
|
3928
|
+
|
3929
|
+
</ul>
|
3930
|
+
|
3931
|
+
|
3932
|
+
</div><table class="source_code">
|
3933
|
+
<tr>
|
3934
|
+
<td>
|
3935
|
+
<pre class="lines">
|
3936
|
+
|
3937
|
+
|
3938
|
+
1151
|
3939
|
+
1152
|
3940
|
+
1153
|
3941
|
+
1154</pre>
|
3942
|
+
</td>
|
3943
|
+
<td>
|
3944
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1151</span>
|
3945
|
+
|
3946
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_addSubcmd'>addSubcmd</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
|
3947
|
+
<span class='id identifier rubyid_cmd'>cmd</span><span class='period'>.</span><span class='id identifier rubyid_parent'>parent</span> <span class='op'>=</span> <span class='kw'>self</span>
|
3948
|
+
<span class='ivar'>@subcmd</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span> <span class='id identifier rubyid_cmd'>cmd</span>
|
3949
|
+
<span class='kw'>end</span></pre>
|
3950
|
+
</td>
|
3951
|
+
</tr>
|
3952
|
+
</table>
|
3661
3953
|
</div>
|
3662
3954
|
|
3663
3955
|
<div class="method_details ">
|
@@ -3687,20 +3979,28 @@ after '--').</p>
|
|
3687
3979
|
<pre class="lines">
|
3688
3980
|
|
3689
3981
|
|
3690
|
-
|
3691
|
-
|
3692
|
-
|
3693
|
-
|
3694
|
-
|
3695
|
-
|
3696
|
-
|
3982
|
+
1507
|
3983
|
+
1508
|
3984
|
+
1509
|
3985
|
+
1510
|
3986
|
+
1511
|
3987
|
+
1512
|
3988
|
+
1513
|
3989
|
+
1514
|
3990
|
+
1515
|
3991
|
+
1516
|
3992
|
+
1517</pre>
|
3697
3993
|
</td>
|
3698
3994
|
<td>
|
3699
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3995
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1507</span>
|
3700
3996
|
|
3701
3997
|
<span class='kw'>def</span> <span class='id identifier rubyid_apply'>apply</span><span class='lparen'>(</span> <span class='id identifier rubyid_default'>default</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
3702
3998
|
<span class='kw'>if</span> <span class='id identifier rubyid_given'>given</span>
|
3703
|
-
<span class='
|
3999
|
+
<span class='kw'>if</span> <span class='ivar'>@type</span> <span class='op'>==</span> <span class='symbol'>:switch</span>
|
4000
|
+
<span class='kw'>true</span>
|
4001
|
+
<span class='kw'>else</span>
|
4002
|
+
<span class='id identifier rubyid_value'>value</span>
|
4003
|
+
<span class='kw'>end</span>
|
3704
4004
|
<span class='kw'>else</span>
|
3705
4005
|
<span class='id identifier rubyid_default'>default</span>
|
3706
4006
|
<span class='kw'>end</span>
|
@@ -3756,12 +4056,12 @@ after '--').</p>
|
|
3756
4056
|
<pre class="lines">
|
3757
4057
|
|
3758
4058
|
|
3759
|
-
|
3760
|
-
|
3761
|
-
|
4059
|
+
1160
|
4060
|
+
1161
|
4061
|
+
1162</pre>
|
3762
4062
|
</td>
|
3763
4063
|
<td>
|
3764
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4064
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1160</span>
|
3765
4065
|
|
3766
4066
|
<span class='kw'>def</span> <span class='id identifier rubyid_applyConfig'>applyConfig</span><span class='lparen'>(</span> <span class='id identifier rubyid_config'>config</span> <span class='rparen'>)</span>
|
3767
4067
|
<span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span> <span class='id identifier rubyid_config'>config</span> <span class='rparen'>)</span>
|
@@ -3797,26 +4097,26 @@ after '--').</p>
|
|
3797
4097
|
<pre class="lines">
|
3798
4098
|
|
3799
4099
|
|
3800
|
-
|
3801
|
-
|
3802
|
-
|
3803
|
-
|
3804
|
-
|
3805
|
-
|
3806
|
-
|
3807
|
-
|
3808
|
-
|
3809
|
-
|
3810
|
-
|
3811
|
-
|
3812
|
-
|
3813
|
-
|
3814
|
-
|
3815
|
-
|
3816
|
-
|
4100
|
+
1598
|
4101
|
+
1599
|
4102
|
+
1600
|
4103
|
+
1601
|
4104
|
+
1602
|
4105
|
+
1603
|
4106
|
+
1604
|
4107
|
+
1605
|
4108
|
+
1606
|
4109
|
+
1607
|
4110
|
+
1608
|
4111
|
+
1609
|
4112
|
+
1610
|
4113
|
+
1611
|
4114
|
+
1612
|
4115
|
+
1613
|
4116
|
+
1614</pre>
|
3817
4117
|
</td>
|
3818
4118
|
<td>
|
3819
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4119
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1598</span>
|
3820
4120
|
|
3821
4121
|
<span class='kw'>def</span> <span class='id identifier rubyid_argById'>argById</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
3822
4122
|
<span class='kw'>if</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>==</span> <span class='kw'>nil</span> <span class='op'>||</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>==</span> <span class='symbol'>:default</span>
|
@@ -3866,26 +4166,26 @@ after '--').</p>
|
|
3866
4166
|
<pre class="lines">
|
3867
4167
|
|
3868
4168
|
|
3869
|
-
|
3870
|
-
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3874
|
-
|
3875
|
-
|
3876
|
-
|
3877
|
-
|
3878
|
-
|
3879
|
-
|
3880
|
-
|
3881
|
-
|
3882
|
-
|
3883
|
-
|
3884
|
-
|
3885
|
-
|
4169
|
+
1578
|
4170
|
+
1579
|
4171
|
+
1580
|
4172
|
+
1581
|
4173
|
+
1582
|
4174
|
+
1583
|
4175
|
+
1584
|
4176
|
+
1585
|
4177
|
+
1586
|
4178
|
+
1587
|
4179
|
+
1588
|
4180
|
+
1589
|
4181
|
+
1590
|
4182
|
+
1591
|
4183
|
+
1592
|
4184
|
+
1593
|
4185
|
+
1594</pre>
|
3886
4186
|
</td>
|
3887
4187
|
<td>
|
3888
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4188
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1578</span>
|
3889
4189
|
|
3890
4190
|
<span class='kw'>def</span> <span class='id identifier rubyid_argByName'>argByName</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
3891
4191
|
<span class='kw'>if</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>==</span> <span class='kw'>nil</span> <span class='op'>||</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>==</span> <span class='symbol'>:default</span>
|
@@ -3935,54 +4235,58 @@ after '--').</p>
|
|
3935
4235
|
<pre class="lines">
|
3936
4236
|
|
3937
4237
|
|
3938
|
-
|
3939
|
-
|
3940
|
-
|
3941
|
-
|
3942
|
-
|
3943
|
-
|
3944
|
-
|
3945
|
-
|
3946
|
-
|
3947
|
-
|
3948
|
-
|
3949
|
-
|
3950
|
-
|
3951
|
-
|
3952
|
-
|
3953
|
-
|
3954
|
-
|
3955
|
-
|
3956
|
-
|
3957
|
-
|
3958
|
-
|
3959
|
-
|
3960
|
-
|
3961
|
-
|
3962
|
-
|
3963
|
-
|
3964
|
-
|
3965
|
-
|
3966
|
-
|
3967
|
-
|
3968
|
-
|
3969
|
-
|
3970
|
-
|
3971
|
-
|
3972
|
-
|
3973
|
-
|
3974
|
-
|
3975
|
-
|
3976
|
-
|
3977
|
-
|
3978
|
-
|
4238
|
+
1177
|
4239
|
+
1178
|
4240
|
+
1179
|
4241
|
+
1180
|
4242
|
+
1181
|
4243
|
+
1182
|
4244
|
+
1183
|
4245
|
+
1184
|
4246
|
+
1185
|
4247
|
+
1186
|
4248
|
+
1187
|
4249
|
+
1188
|
4250
|
+
1189
|
4251
|
+
1190
|
4252
|
+
1191
|
4253
|
+
1192
|
4254
|
+
1193
|
4255
|
+
1194
|
4256
|
+
1195
|
4257
|
+
1196
|
4258
|
+
1197
|
4259
|
+
1198
|
4260
|
+
1199
|
4261
|
+
1200
|
4262
|
+
1201
|
4263
|
+
1202
|
4264
|
+
1203
|
4265
|
+
1204
|
4266
|
+
1205
|
4267
|
+
1206
|
4268
|
+
1207
|
4269
|
+
1208
|
4270
|
+
1209
|
4271
|
+
1210
|
4272
|
+
1211
|
4273
|
+
1212
|
4274
|
+
1213
|
4275
|
+
1214
|
4276
|
+
1215
|
4277
|
+
1216
|
4278
|
+
1217
|
4279
|
+
1218</pre>
|
4280
|
+
</td>
|
4281
|
+
<td>
|
4282
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1177</span>
|
4283
|
+
|
3979
4284
|
<span class='kw'>def</span> <span class='id identifier rubyid_check'>check</span><span class='lparen'>(</span> <span class='id identifier rubyid_argsState'>argsState</span> <span class='rparen'>)</span>
|
3980
4285
|
|
3981
4286
|
<span class='comment'># Start at top.
|
3982
4287
|
</span> <span class='id identifier rubyid_top'>top</span> <span class='op'>=</span> <span class='kw'>self</span>
|
3983
4288
|
|
3984
|
-
<span class='kw'>
|
3985
|
-
|
4289
|
+
<span class='id identifier rubyid_parse'>parse</span> <span class='op'>=</span> <span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>do</span>
|
3986
4290
|
<span class='comment'># Parse and check for invalid arguments.
|
3987
4291
|
</span> <span class='kw'>begin</span>
|
3988
4292
|
<span class='id identifier rubyid_top'>top</span> <span class='op'>=</span> <span class='id identifier rubyid_top'>top</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span> <span class='id identifier rubyid_argsState'>argsState</span><span class='comma'>,</span> <span class='id identifier rubyid_top'>top</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span> <span class='symbol'>:check_invalid</span> <span class='rbracket'>]</span> <span class='rparen'>)</span>
|
@@ -3990,10 +4294,10 @@ after '--').</p>
|
|
3990
4294
|
|
3991
4295
|
<span class='comment'># Check for any missing valid arguments.
|
3992
4296
|
</span> <span class='id identifier rubyid_checkMissing'>checkMissing</span>
|
4297
|
+
<span class='kw'>end</span>
|
3993
4298
|
|
3994
|
-
<span class='
|
3995
|
-
|
3996
|
-
<span class='id identifier rubyid_error'>error</span><span class='lparen'>(</span> <span class='id identifier rubyid_err'>err</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='rparen'>)</span>
|
4299
|
+
<span class='id identifier rubyid_error'>error</span> <span class='op'>=</span> <span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_err'>err</span><span class='op'>|</span>
|
4300
|
+
<span class='id identifier rubyid_errornl'>errornl</span><span class='lparen'>(</span> <span class='id identifier rubyid_err'>err</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='rparen'>)</span>
|
3997
4301
|
|
3998
4302
|
<span class='comment'># Display subcmd specific usage info.
|
3999
4303
|
</span> <span class='id identifier rubyid_err'>err</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_usage'>usage</span>
|
@@ -4001,6 +4305,12 @@ after '--').</p>
|
|
4001
4305
|
<span class='id identifier rubyid_exit'>exit</span><span class='lparen'>(</span> <span class='int'>1</span> <span class='rparen'>)</span>
|
4002
4306
|
<span class='kw'>end</span>
|
4003
4307
|
|
4308
|
+
<span class='kw'>begin</span>
|
4309
|
+
<span class='id identifier rubyid_parse'>parse</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
4310
|
+
<span class='kw'>rescue</span> <span class='const'>Opt</span><span class='op'>::</span><span class='const'>MissingArgument</span><span class='comma'>,</span> <span class='const'>Opt</span><span class='op'>::</span><span class='const'>InvalidOption</span> <span class='op'>=></span> <span class='id identifier rubyid_err'>err</span>
|
4311
|
+
<span class='id identifier rubyid_error'>error</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span> <span class='id identifier rubyid_err'>err</span> <span class='rparen'>)</span>
|
4312
|
+
<span class='kw'>end</span>
|
4313
|
+
|
4004
4314
|
<span class='comment'># Revert back to top after hierarchy travelsal.
|
4005
4315
|
</span> <span class='id identifier rubyid_usageIfHelp'>usageIfHelp</span>
|
4006
4316
|
|
@@ -4114,21 +4424,21 @@ after '--').</p>
|
|
4114
4424
|
<pre class="lines">
|
4115
4425
|
|
4116
4426
|
|
4117
|
-
|
4118
|
-
|
4119
|
-
|
4120
|
-
|
4121
|
-
|
4122
|
-
|
4123
|
-
|
4124
|
-
|
4125
|
-
|
4126
|
-
|
4127
|
-
|
4128
|
-
|
4427
|
+
1432
|
4428
|
+
1433
|
4429
|
+
1434
|
4430
|
+
1435
|
4431
|
+
1436
|
4432
|
+
1437
|
4433
|
+
1438
|
4434
|
+
1439
|
4435
|
+
1440
|
4436
|
+
1441
|
4437
|
+
1442
|
4438
|
+
1443</pre>
|
4129
4439
|
</td>
|
4130
4440
|
<td>
|
4131
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4441
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1432</span>
|
4132
4442
|
|
4133
4443
|
<span class='kw'>def</span> <span class='id identifier rubyid_checkAlso'>checkAlso</span><span class='lparen'>(</span> <span class='id identifier rubyid_opt'>opt</span><span class='comma'>,</span> <span class='id identifier rubyid_error'>error</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_check'>check</span> <span class='rparen'>)</span>
|
4134
4444
|
<span class='kw'>begin</span>
|
@@ -4137,7 +4447,7 @@ after '--').</p>
|
|
4137
4447
|
<span class='kw'>end</span>
|
4138
4448
|
<span class='kw'>rescue</span> <span class='const'>Opt</span><span class='op'>::</span><span class='const'>MissingArgument</span><span class='comma'>,</span> <span class='const'>Opt</span><span class='op'>::</span><span class='const'>InvalidOption</span> <span class='op'>=></span> <span class='id identifier rubyid_err'>err</span>
|
4139
4449
|
<span class='cvar'>@@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span>
|
4140
|
-
<span class='id identifier
|
4450
|
+
<span class='id identifier rubyid_errornl'>errornl</span><span class='lparen'>(</span> <span class='id identifier rubyid_err'>err</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='rparen'>)</span>
|
4141
4451
|
<span class='id identifier rubyid_err'>err</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_usage'>usage</span>
|
4142
4452
|
<span class='id identifier rubyid_exit'>exit</span><span class='lparen'>(</span> <span class='int'>1</span> <span class='rparen'>)</span>
|
4143
4453
|
<span class='kw'>end</span>
|
@@ -4187,61 +4497,61 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4187
4497
|
<pre class="lines">
|
4188
4498
|
|
4189
4499
|
|
4190
|
-
|
4191
|
-
|
4192
|
-
|
4193
|
-
|
4194
|
-
|
4195
|
-
|
4196
|
-
|
4197
|
-
|
4198
|
-
|
4199
|
-
|
4200
|
-
|
4201
|
-
|
4202
|
-
|
4203
|
-
|
4204
|
-
|
4205
|
-
|
4206
|
-
|
4207
|
-
|
4208
|
-
|
4209
|
-
|
4210
|
-
|
4211
|
-
|
4212
|
-
|
4213
|
-
|
4214
|
-
|
4215
|
-
|
4216
|
-
|
4217
|
-
|
4218
|
-
|
4219
|
-
|
4220
|
-
|
4221
|
-
|
4222
|
-
|
4223
|
-
|
4224
|
-
|
4225
|
-
|
4226
|
-
|
4227
|
-
|
4228
|
-
|
4229
|
-
|
4230
|
-
|
4231
|
-
|
4232
|
-
|
4233
|
-
|
4234
|
-
|
4235
|
-
|
4236
|
-
|
4237
|
-
|
4238
|
-
|
4239
|
-
|
4240
|
-
|
4241
|
-
|
4500
|
+
1352
|
4501
|
+
1353
|
4502
|
+
1354
|
4503
|
+
1355
|
4504
|
+
1356
|
4505
|
+
1357
|
4506
|
+
1358
|
4507
|
+
1359
|
4508
|
+
1360
|
4509
|
+
1361
|
4510
|
+
1362
|
4511
|
+
1363
|
4512
|
+
1364
|
4513
|
+
1365
|
4514
|
+
1366
|
4515
|
+
1367
|
4516
|
+
1368
|
4517
|
+
1369
|
4518
|
+
1370
|
4519
|
+
1371
|
4520
|
+
1372
|
4521
|
+
1373
|
4522
|
+
1374
|
4523
|
+
1375
|
4524
|
+
1376
|
4525
|
+
1377
|
4526
|
+
1378
|
4527
|
+
1379
|
4528
|
+
1380
|
4529
|
+
1381
|
4530
|
+
1382
|
4531
|
+
1383
|
4532
|
+
1384
|
4533
|
+
1385
|
4534
|
+
1386
|
4535
|
+
1387
|
4536
|
+
1388
|
4537
|
+
1389
|
4538
|
+
1390
|
4539
|
+
1391
|
4540
|
+
1392
|
4541
|
+
1393
|
4542
|
+
1394
|
4543
|
+
1395
|
4544
|
+
1396
|
4545
|
+
1397
|
4546
|
+
1398
|
4547
|
+
1399
|
4548
|
+
1400
|
4549
|
+
1401
|
4550
|
+
1402
|
4551
|
+
1403</pre>
|
4242
4552
|
</td>
|
4243
4553
|
<td>
|
4244
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4554
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1352</span>
|
4245
4555
|
|
4246
4556
|
<span class='kw'>def</span> <span class='id identifier rubyid_checkMissing'>checkMissing</span>
|
4247
4557
|
|
@@ -4326,25 +4636,25 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4326
4636
|
<pre class="lines">
|
4327
4637
|
|
4328
4638
|
|
4329
|
-
|
4330
|
-
|
4331
|
-
|
4332
|
-
|
4333
|
-
|
4334
|
-
|
4335
|
-
|
4336
|
-
|
4337
|
-
|
4338
|
-
|
4339
|
-
|
4340
|
-
|
4341
|
-
|
4342
|
-
|
4343
|
-
|
4344
|
-
|
4639
|
+
1408
|
4640
|
+
1409
|
4641
|
+
1410
|
4642
|
+
1411
|
4643
|
+
1412
|
4644
|
+
1413
|
4645
|
+
1414
|
4646
|
+
1415
|
4647
|
+
1416
|
4648
|
+
1417
|
4649
|
+
1418
|
4650
|
+
1419
|
4651
|
+
1420
|
4652
|
+
1421
|
4653
|
+
1422
|
4654
|
+
1423</pre>
|
4345
4655
|
</td>
|
4346
4656
|
<td>
|
4347
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4657
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1408</span>
|
4348
4658
|
|
4349
4659
|
<span class='kw'>def</span> <span class='id identifier rubyid_checkRule'>checkRule</span>
|
4350
4660
|
|
@@ -4356,7 +4666,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4356
4666
|
|
4357
4667
|
<span class='kw'>rescue</span> <span class='const'>Opt</span><span class='op'>::</span><span class='const'>MissingArgument</span><span class='comma'>,</span> <span class='const'>Opt</span><span class='op'>::</span><span class='const'>InvalidOption</span> <span class='op'>=></span> <span class='id identifier rubyid_err'>err</span>
|
4358
4668
|
<span class='cvar'>@@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span>
|
4359
|
-
<span class='id identifier
|
4669
|
+
<span class='id identifier rubyid_errornl'>errornl</span><span class='lparen'>(</span> <span class='id identifier rubyid_err'>err</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='rparen'>)</span>
|
4360
4670
|
|
4361
4671
|
<span class='id identifier rubyid_usage'>usage</span><span class='lparen'>(</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span>
|
4362
4672
|
|
@@ -4393,51 +4703,51 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4393
4703
|
<pre class="lines">
|
4394
4704
|
|
4395
4705
|
|
4396
|
-
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4405
|
-
|
4406
|
-
|
4407
|
-
|
4408
|
-
|
4409
|
-
|
4410
|
-
|
4411
|
-
|
4412
|
-
|
4413
|
-
|
4414
|
-
|
4415
|
-
|
4416
|
-
|
4417
|
-
|
4418
|
-
|
4419
|
-
|
4420
|
-
|
4421
|
-
|
4422
|
-
|
4423
|
-
|
4424
|
-
|
4425
|
-
|
4426
|
-
|
4427
|
-
|
4428
|
-
|
4429
|
-
|
4430
|
-
|
4431
|
-
|
4432
|
-
|
4433
|
-
|
4434
|
-
|
4435
|
-
|
4436
|
-
|
4437
|
-
|
4438
|
-
</td>
|
4439
|
-
<td>
|
4440
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4706
|
+
1753
|
4707
|
+
1754
|
4708
|
+
1755
|
4709
|
+
1756
|
4710
|
+
1757
|
4711
|
+
1758
|
4712
|
+
1759
|
4713
|
+
1760
|
4714
|
+
1761
|
4715
|
+
1762
|
4716
|
+
1763
|
4717
|
+
1764
|
4718
|
+
1765
|
4719
|
+
1766
|
4720
|
+
1767
|
4721
|
+
1768
|
4722
|
+
1769
|
4723
|
+
1770
|
4724
|
+
1771
|
4725
|
+
1772
|
4726
|
+
1773
|
4727
|
+
1774
|
4728
|
+
1775
|
4729
|
+
1776
|
4730
|
+
1777
|
4731
|
+
1778
|
4732
|
+
1779
|
4733
|
+
1780
|
4734
|
+
1781
|
4735
|
+
1782
|
4736
|
+
1783
|
4737
|
+
1784
|
4738
|
+
1785
|
4739
|
+
1786
|
4740
|
+
1787
|
4741
|
+
1788
|
4742
|
+
1789
|
4743
|
+
1790
|
4744
|
+
1791
|
4745
|
+
1792
|
4746
|
+
1793
|
4747
|
+
1794</pre>
|
4748
|
+
</td>
|
4749
|
+
<td>
|
4750
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1753</span>
|
4441
4751
|
|
4442
4752
|
<span class='kw'>def</span> <span class='id identifier rubyid_cmdline'>cmdline</span>
|
4443
4753
|
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -4512,12 +4822,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4512
4822
|
<pre class="lines">
|
4513
4823
|
|
4514
4824
|
|
4515
|
-
|
4516
|
-
|
4517
|
-
|
4825
|
+
1572
|
4826
|
+
1573
|
4827
|
+
1574</pre>
|
4518
4828
|
</td>
|
4519
4829
|
<td>
|
4520
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4830
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1572</span>
|
4521
4831
|
|
4522
4832
|
<span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
4523
4833
|
<span class='id identifier rubyid_argByName'>argByName</span><span class='lparen'>(</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
@@ -4553,14 +4863,14 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4553
4863
|
<pre class="lines">
|
4554
4864
|
|
4555
4865
|
|
4556
|
-
|
4557
|
-
|
4558
|
-
|
4559
|
-
|
4560
|
-
|
4866
|
+
1474
|
4867
|
+
1475
|
4868
|
+
1476
|
4869
|
+
1477
|
4870
|
+
1478</pre>
|
4561
4871
|
</td>
|
4562
4872
|
<td>
|
4563
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4873
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1474</span>
|
4564
4874
|
|
4565
4875
|
<span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
4566
4876
|
<span class='id identifier rubyid_suball'>suball</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_o'>o</span><span class='op'>|</span>
|
@@ -4598,14 +4908,14 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4598
4908
|
<pre class="lines">
|
4599
4909
|
|
4600
4910
|
|
4601
|
-
|
4602
|
-
|
4603
|
-
|
4604
|
-
|
4605
|
-
|
4911
|
+
1482
|
4912
|
+
1483
|
4913
|
+
1484
|
4914
|
+
1485
|
4915
|
+
1486</pre>
|
4606
4916
|
</td>
|
4607
4917
|
<td>
|
4608
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4918
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1482</span>
|
4609
4919
|
|
4610
4920
|
<span class='kw'>def</span> <span class='id identifier rubyid_each_given'>each_given</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
4611
4921
|
<span class='id identifier rubyid_suball'>suball</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_o'>o</span><span class='op'>|</span>
|
@@ -4620,7 +4930,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4620
4930
|
<div class="method_details ">
|
4621
4931
|
<h3 class="signature " id="error-instance_method">
|
4622
4932
|
|
4623
|
-
- (<tt>Object</tt>) <strong>error</strong>(str)
|
4933
|
+
- (<tt>Object</tt>) <strong>error</strong>(str, nl = false)
|
4624
4934
|
|
4625
4935
|
|
4626
4936
|
|
@@ -4643,15 +4953,101 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4643
4953
|
<pre class="lines">
|
4644
4954
|
|
4645
4955
|
|
4646
|
-
|
4647
|
-
|
4648
|
-
|
4956
|
+
1837
|
4957
|
+
1838
|
4958
|
+
1839
|
4959
|
+
1840</pre>
|
4649
4960
|
</td>
|
4650
4961
|
<td>
|
4651
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4962
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1837</span>
|
4652
4963
|
|
4653
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_error'>error</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
4654
|
-
<span class='
|
4964
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_error'>error</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span><span class='comma'>,</span> <span class='id identifier rubyid_nl'>nl</span> <span class='op'>=</span> <span class='kw'>false</span> <span class='rparen'>)</span>
|
4965
|
+
<span class='id identifier rubyid_nl'>nl</span> <span class='op'>=</span> <span class='id identifier rubyid_nl'>nl</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
4966
|
+
<span class='const'>STDERR</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_nl'>nl</span><span class='rbrace'>}</span><span class='embexpr_beg'>#{</span><span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_progname'>progname</span><span class='rbrace'>}</span><span class='tstring_content'> error: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_str'>str</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
4967
|
+
<span class='kw'>end</span></pre>
|
4968
|
+
</td>
|
4969
|
+
</tr>
|
4970
|
+
</table>
|
4971
|
+
</div>
|
4972
|
+
|
4973
|
+
<div class="method_details ">
|
4974
|
+
<h3 class="signature " id="errornl-instance_method">
|
4975
|
+
|
4976
|
+
- (<tt>Object</tt>) <strong>errornl</strong>(str)
|
4977
|
+
|
4978
|
+
|
4979
|
+
|
4980
|
+
|
4981
|
+
|
4982
|
+
</h3><div class="docstring">
|
4983
|
+
<div class="discussion">
|
4984
|
+
|
4985
|
+
<p>Como error printout with pre-newline.</p>
|
4986
|
+
|
4987
|
+
|
4988
|
+
</div>
|
4989
|
+
</div>
|
4990
|
+
<div class="tags">
|
4991
|
+
|
4992
|
+
|
4993
|
+
</div><table class="source_code">
|
4994
|
+
<tr>
|
4995
|
+
<td>
|
4996
|
+
<pre class="lines">
|
4997
|
+
|
4998
|
+
|
4999
|
+
1844
|
5000
|
+
1845
|
5001
|
+
1846</pre>
|
5002
|
+
</td>
|
5003
|
+
<td>
|
5004
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1844</span>
|
5005
|
+
|
5006
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_errornl'>errornl</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
5007
|
+
<span class='id identifier rubyid_error'>error</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span>
|
5008
|
+
<span class='kw'>end</span></pre>
|
5009
|
+
</td>
|
5010
|
+
</tr>
|
5011
|
+
</table>
|
5012
|
+
</div>
|
5013
|
+
|
5014
|
+
<div class="method_details ">
|
5015
|
+
<h3 class="signature " id="fatal-instance_method">
|
5016
|
+
|
5017
|
+
- (<tt>Object</tt>) <strong>fatal</strong>(str)
|
5018
|
+
|
5019
|
+
|
5020
|
+
|
5021
|
+
|
5022
|
+
|
5023
|
+
</h3><div class="docstring">
|
5024
|
+
<div class="discussion">
|
5025
|
+
|
5026
|
+
<p>Como error printout with immediate exit.</p>
|
5027
|
+
|
5028
|
+
|
5029
|
+
</div>
|
5030
|
+
</div>
|
5031
|
+
<div class="tags">
|
5032
|
+
|
5033
|
+
|
5034
|
+
</div><table class="source_code">
|
5035
|
+
<tr>
|
5036
|
+
<td>
|
5037
|
+
<pre class="lines">
|
5038
|
+
|
5039
|
+
|
5040
|
+
1850
|
5041
|
+
1851
|
5042
|
+
1852
|
5043
|
+
1853</pre>
|
5044
|
+
</td>
|
5045
|
+
<td>
|
5046
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1850</span>
|
5047
|
+
|
5048
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_fatal'>fatal</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
5049
|
+
<span class='id identifier rubyid_error'>error</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
5050
|
+
<span class='id identifier rubyid_exit'>exit</span><span class='lparen'>(</span> <span class='kw'>false</span> <span class='rparen'>)</span>
|
4655
5051
|
<span class='kw'>end</span></pre>
|
4656
5052
|
</td>
|
4657
5053
|
</tr>
|
@@ -4684,20 +5080,20 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4684
5080
|
<pre class="lines">
|
4685
5081
|
|
4686
5082
|
|
4687
|
-
|
4688
|
-
|
4689
|
-
|
4690
|
-
|
4691
|
-
|
4692
|
-
|
4693
|
-
|
4694
|
-
|
4695
|
-
|
4696
|
-
|
4697
|
-
|
5083
|
+
1823
|
5084
|
+
1824
|
5085
|
+
1825
|
5086
|
+
1826
|
5087
|
+
1827
|
5088
|
+
1828
|
5089
|
+
1829
|
5090
|
+
1830
|
5091
|
+
1831
|
5092
|
+
1832
|
5093
|
+
1833</pre>
|
4698
5094
|
</td>
|
4699
5095
|
<td>
|
4700
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5096
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1823</span>
|
4701
5097
|
|
4702
5098
|
<span class='kw'>def</span> <span class='id identifier rubyid_findOpt'>findOpt</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
4703
5099
|
<span class='kw'>if</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>==</span> <span class='kw'>nil</span>
|
@@ -4741,16 +5137,16 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4741
5137
|
<pre class="lines">
|
4742
5138
|
|
4743
5139
|
|
4744
|
-
|
4745
|
-
|
4746
|
-
|
4747
|
-
|
4748
|
-
|
4749
|
-
|
4750
|
-
|
5140
|
+
1490
|
5141
|
+
1491
|
5142
|
+
1492
|
5143
|
+
1493
|
5144
|
+
1494
|
5145
|
+
1495
|
5146
|
+
1496</pre>
|
4751
5147
|
</td>
|
4752
5148
|
<td>
|
4753
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5149
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1490</span>
|
4754
5150
|
|
4755
5151
|
<span class='kw'>def</span> <span class='id identifier rubyid_givenCount'>givenCount</span>
|
4756
5152
|
<span class='id identifier rubyid_cnt'>cnt</span> <span class='op'>=</span> <span class='int'>0</span>
|
@@ -4790,12 +5186,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4790
5186
|
<pre class="lines">
|
4791
5187
|
|
4792
5188
|
|
4793
|
-
|
4794
|
-
|
4795
|
-
|
5189
|
+
1548
|
5190
|
+
1549
|
5191
|
+
1550</pre>
|
4796
5192
|
</td>
|
4797
5193
|
<td>
|
4798
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5194
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1548</span>
|
4799
5195
|
|
4800
5196
|
<span class='kw'>def</span> <span class='id identifier rubyid_givenSubcmd'>givenSubcmd</span>
|
4801
5197
|
<span class='lparen'>(</span> <span class='ivar'>@subcmd</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_o'>o</span><span class='op'>|</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_given'>given</span> <span class='kw'>end</span> <span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
@@ -4831,15 +5227,15 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4831
5227
|
<pre class="lines">
|
4832
5228
|
|
4833
5229
|
|
4834
|
-
|
4835
|
-
|
4836
|
-
|
4837
|
-
|
4838
|
-
|
4839
|
-
|
5230
|
+
1618
|
5231
|
+
1619
|
5232
|
+
1620
|
5233
|
+
1621
|
5234
|
+
1622
|
5235
|
+
1623</pre>
|
4840
5236
|
</td>
|
4841
5237
|
<td>
|
4842
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5238
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1618</span>
|
4843
5239
|
|
4844
5240
|
<span class='kw'>def</span> <span class='id identifier rubyid_hasArg'>hasArg</span>
|
4845
5241
|
<span class='kw'>case</span> <span class='ivar'>@type</span>
|
@@ -4878,19 +5274,19 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4878
5274
|
<pre class="lines">
|
4879
5275
|
|
4880
5276
|
|
4881
|
-
|
4882
|
-
|
4883
|
-
|
4884
|
-
|
4885
|
-
|
4886
|
-
|
5277
|
+
1627
|
5278
|
+
1628
|
5279
|
+
1629
|
5280
|
+
1630
|
5281
|
+
1631
|
5282
|
+
1632</pre>
|
4887
5283
|
</td>
|
4888
5284
|
<td>
|
4889
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5285
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1627</span>
|
4890
5286
|
|
4891
5287
|
<span class='kw'>def</span> <span class='id identifier rubyid_hasMany'>hasMany</span>
|
4892
5288
|
<span class='kw'>case</span> <span class='ivar'>@type</span>
|
4893
|
-
<span class='kw'>when</span> <span class='symbol'>:multi</span><span class='comma'>,</span> <span class='symbol'>:opt_multi</span><span class='comma'>,</span> <span class='symbol'>:opt_any</span><span class='comma'>,</span> <span class='symbol'>:exclusive</span><span class='semicolon'>;</span> <span class='kw'>true</span>
|
5289
|
+
<span class='kw'>when</span> <span class='symbol'>:multi</span><span class='comma'>,</span> <span class='symbol'>:opt_multi</span><span class='comma'>,</span> <span class='symbol'>:opt_any</span><span class='comma'>,</span> <span class='symbol'>:exclusive</span><span class='comma'>,</span> <span class='symbol'>:default</span><span class='semicolon'>;</span> <span class='kw'>true</span>
|
4894
5290
|
<span class='kw'>else</span> <span class='kw'>false</span>
|
4895
5291
|
<span class='kw'>end</span>
|
4896
5292
|
<span class='kw'>end</span></pre>
|
@@ -4926,15 +5322,15 @@ exclusive.</p>
|
|
4926
5322
|
<pre class="lines">
|
4927
5323
|
|
4928
5324
|
|
4929
|
-
|
4930
|
-
|
4931
|
-
|
4932
|
-
|
4933
|
-
|
4934
|
-
|
5325
|
+
1652
|
5326
|
+
1653
|
5327
|
+
1654
|
5328
|
+
1655
|
5329
|
+
1656
|
5330
|
+
1657</pre>
|
4935
5331
|
</td>
|
4936
5332
|
<td>
|
4937
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5333
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1652</span>
|
4938
5334
|
|
4939
5335
|
<span class='kw'>def</span> <span class='id identifier rubyid_isExclusive'>isExclusive</span>
|
4940
5336
|
<span class='kw'>case</span> <span class='ivar'>@type</span>
|
@@ -4973,15 +5369,15 @@ exclusive.</p>
|
|
4973
5369
|
<pre class="lines">
|
4974
5370
|
|
4975
5371
|
|
4976
|
-
|
4977
|
-
|
4978
|
-
|
4979
|
-
|
4980
|
-
|
4981
|
-
|
5372
|
+
1636
|
5373
|
+
1637
|
5374
|
+
1638
|
5375
|
+
1639
|
5376
|
+
1640
|
5377
|
+
1641</pre>
|
4982
5378
|
</td>
|
4983
5379
|
<td>
|
4984
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5380
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1636</span>
|
4985
5381
|
|
4986
5382
|
<span class='kw'>def</span> <span class='id identifier rubyid_isRequired'>isRequired</span>
|
4987
5383
|
<span class='kw'>case</span> <span class='ivar'>@type</span>
|
@@ -5020,15 +5416,15 @@ exclusive.</p>
|
|
5020
5416
|
<pre class="lines">
|
5021
5417
|
|
5022
5418
|
|
5023
|
-
|
5024
|
-
|
5025
|
-
|
5026
|
-
|
5027
|
-
|
5028
|
-
|
5419
|
+
1661
|
5420
|
+
1662
|
5421
|
+
1663
|
5422
|
+
1664
|
5423
|
+
1665
|
5424
|
+
1666</pre>
|
5029
5425
|
</td>
|
5030
5426
|
<td>
|
5031
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5427
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1661</span>
|
5032
5428
|
|
5033
5429
|
<span class='kw'>def</span> <span class='id identifier rubyid_isSwitch'>isSwitch</span>
|
5034
5430
|
<span class='kw'>case</span> <span class='ivar'>@type</span>
|
@@ -5067,12 +5463,12 @@ exclusive.</p>
|
|
5067
5463
|
<pre class="lines">
|
5068
5464
|
|
5069
5465
|
|
5070
|
-
|
5071
|
-
|
5072
|
-
|
5466
|
+
1462
|
5467
|
+
1463
|
5468
|
+
1464</pre>
|
5073
5469
|
</td>
|
5074
5470
|
<td>
|
5075
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5471
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1462</span>
|
5076
5472
|
|
5077
5473
|
<span class='kw'>def</span> <span class='id identifier rubyid_opt'>opt</span>
|
5078
5474
|
<span class='ivar'>@shortOpt</span> <span class='op'>?</span> <span class='ivar'>@shortOpt</span> <span class='op'>:</span> <span class='ivar'>@longOpt</span>
|
@@ -5132,142 +5528,59 @@ exclusive.</p>
|
|
5132
5528
|
<pre class="lines">
|
5133
5529
|
|
5134
5530
|
|
5135
|
-
|
5136
|
-
|
5137
|
-
|
5138
|
-
|
5139
|
-
|
5140
|
-
|
5141
|
-
|
5142
|
-
|
5143
|
-
|
5144
|
-
</td>
|
5145
|
-
<td>
|
5146
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5147
|
-
|
5148
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_params'>params</span>
|
5149
|
-
<span class='id identifier rubyid_map'>map</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
5150
|
-
<span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
5151
|
-
<span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>=</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
5152
|
-
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_str_to_num'>str_to_num</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
5153
|
-
<span class='id identifier rubyid_map'>map</span><span class='lbracket'>[</span> <span class='id identifier rubyid_name'>name</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
5154
|
-
<span class='kw'>end</span>
|
5155
|
-
<span class='id identifier rubyid_map'>map</span>
|
5156
|
-
<span class='kw'>end</span></pre>
|
5157
|
-
</td>
|
5158
|
-
</tr>
|
5159
|
-
</table>
|
5160
|
-
</div>
|
5161
|
-
|
5162
|
-
<div class="method_details ">
|
5163
|
-
<h3 class="signature " id="parse-instance_method">
|
5164
|
-
|
5165
|
-
- (<tt>Object</tt>) <strong>parse</strong>(args, checkInvalids = true)
|
5166
|
-
|
5167
|
-
|
5168
|
-
|
5169
|
-
|
5170
|
-
|
5171
|
-
</h3><div class="docstring">
|
5172
|
-
<div class="discussion">
|
5173
|
-
|
5174
|
-
<p>Parse cmdline options from args.</p>
|
5175
|
-
|
5176
|
-
|
5177
|
-
</div>
|
5178
|
-
</div>
|
5179
|
-
<div class="tags">
|
5180
|
-
|
5181
|
-
|
5182
|
-
</div><table class="source_code">
|
5183
|
-
<tr>
|
5184
|
-
<td>
|
5185
|
-
<pre class="lines">
|
5186
|
-
|
5187
|
-
|
5188
|
-
1140
|
5189
|
-
1141
|
5190
|
-
1142
|
5191
|
-
1143
|
5192
|
-
1144
|
5193
|
-
1145
|
5194
|
-
1146
|
5195
|
-
1147
|
5196
|
-
1148
|
5197
|
-
1149
|
5198
|
-
1150
|
5199
|
-
1151
|
5200
|
-
1152
|
5201
|
-
1153
|
5202
|
-
1154
|
5203
|
-
1155
|
5204
|
-
1156
|
5205
|
-
1157
|
5206
|
-
1158
|
5207
|
-
1159
|
5208
|
-
1160
|
5209
|
-
1161
|
5210
|
-
1162
|
5211
|
-
1163
|
5212
|
-
1164
|
5213
|
-
1165
|
5214
|
-
1166
|
5215
|
-
1167
|
5216
|
-
1168
|
5217
|
-
1169
|
5218
|
-
1170
|
5219
|
-
1171
|
5220
|
-
1172
|
5221
|
-
1173
|
5222
|
-
1174
|
5223
|
-
1175
|
5224
|
-
1176
|
5225
|
-
1177
|
5226
|
-
1178
|
5227
|
-
1179
|
5228
|
-
1180
|
5229
|
-
1181
|
5230
|
-
1182
|
5231
|
-
1183
|
5232
|
-
1184
|
5233
|
-
1185
|
5234
|
-
1186
|
5235
|
-
1187
|
5236
|
-
1188
|
5237
|
-
1189
|
5238
|
-
1190
|
5239
|
-
1191
|
5240
|
-
1192
|
5241
|
-
1193
|
5242
|
-
1194
|
5243
|
-
1195
|
5244
|
-
1196
|
5245
|
-
1197
|
5246
|
-
1198
|
5247
|
-
1199
|
5248
|
-
1200
|
5249
|
-
1201
|
5250
|
-
1202
|
5251
|
-
1203
|
5252
|
-
1204
|
5253
|
-
1205
|
5254
|
-
1206
|
5255
|
-
1207
|
5256
|
-
1208
|
5257
|
-
1209
|
5258
|
-
1210
|
5259
|
-
1211
|
5260
|
-
1212
|
5261
|
-
1213
|
5262
|
-
1214
|
5263
|
-
1215
|
5264
|
-
1216
|
5265
|
-
1217
|
5266
|
-
1218
|
5267
|
-
1219
|
5268
|
-
1220
|
5269
|
-
1221
|
5270
|
-
1222
|
5531
|
+
1560
|
5532
|
+
1561
|
5533
|
+
1562
|
5534
|
+
1563
|
5535
|
+
1564
|
5536
|
+
1565
|
5537
|
+
1566
|
5538
|
+
1567
|
5539
|
+
1568</pre>
|
5540
|
+
</td>
|
5541
|
+
<td>
|
5542
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1560</span>
|
5543
|
+
|
5544
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_params'>params</span>
|
5545
|
+
<span class='id identifier rubyid_map'>map</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
5546
|
+
<span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
5547
|
+
<span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>=</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
5548
|
+
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_str_to_num'>str_to_num</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
5549
|
+
<span class='id identifier rubyid_map'>map</span><span class='lbracket'>[</span> <span class='id identifier rubyid_name'>name</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
5550
|
+
<span class='kw'>end</span>
|
5551
|
+
<span class='id identifier rubyid_map'>map</span>
|
5552
|
+
<span class='kw'>end</span></pre>
|
5553
|
+
</td>
|
5554
|
+
</tr>
|
5555
|
+
</table>
|
5556
|
+
</div>
|
5557
|
+
|
5558
|
+
<div class="method_details ">
|
5559
|
+
<h3 class="signature " id="parse-instance_method">
|
5560
|
+
|
5561
|
+
- (<tt>Object</tt>) <strong>parse</strong>(args, checkInvalids = true)
|
5562
|
+
|
5563
|
+
|
5564
|
+
|
5565
|
+
|
5566
|
+
|
5567
|
+
</h3><div class="docstring">
|
5568
|
+
<div class="discussion">
|
5569
|
+
|
5570
|
+
<p>Parse cmdline options from args.</p>
|
5571
|
+
|
5572
|
+
|
5573
|
+
</div>
|
5574
|
+
</div>
|
5575
|
+
<div class="tags">
|
5576
|
+
|
5577
|
+
|
5578
|
+
</div><table class="source_code">
|
5579
|
+
<tr>
|
5580
|
+
<td>
|
5581
|
+
<pre class="lines">
|
5582
|
+
|
5583
|
+
|
5271
5584
|
1223
|
5272
5585
|
1224
|
5273
5586
|
1225
|
@@ -5308,10 +5621,93 @@ exclusive.</p>
|
|
5308
5621
|
1260
|
5309
5622
|
1261
|
5310
5623
|
1262
|
5311
|
-
1263
|
5624
|
+
1263
|
5625
|
+
1264
|
5626
|
+
1265
|
5627
|
+
1266
|
5628
|
+
1267
|
5629
|
+
1268
|
5630
|
+
1269
|
5631
|
+
1270
|
5632
|
+
1271
|
5633
|
+
1272
|
5634
|
+
1273
|
5635
|
+
1274
|
5636
|
+
1275
|
5637
|
+
1276
|
5638
|
+
1277
|
5639
|
+
1278
|
5640
|
+
1279
|
5641
|
+
1280
|
5642
|
+
1281
|
5643
|
+
1282
|
5644
|
+
1283
|
5645
|
+
1284
|
5646
|
+
1285
|
5647
|
+
1286
|
5648
|
+
1287
|
5649
|
+
1288
|
5650
|
+
1289
|
5651
|
+
1290
|
5652
|
+
1291
|
5653
|
+
1292
|
5654
|
+
1293
|
5655
|
+
1294
|
5656
|
+
1295
|
5657
|
+
1296
|
5658
|
+
1297
|
5659
|
+
1298
|
5660
|
+
1299
|
5661
|
+
1300
|
5662
|
+
1301
|
5663
|
+
1302
|
5664
|
+
1303
|
5665
|
+
1304
|
5666
|
+
1305
|
5667
|
+
1306
|
5668
|
+
1307
|
5669
|
+
1308
|
5670
|
+
1309
|
5671
|
+
1310
|
5672
|
+
1311
|
5673
|
+
1312
|
5674
|
+
1313
|
5675
|
+
1314
|
5676
|
+
1315
|
5677
|
+
1316
|
5678
|
+
1317
|
5679
|
+
1318
|
5680
|
+
1319
|
5681
|
+
1320
|
5682
|
+
1321
|
5683
|
+
1322
|
5684
|
+
1323
|
5685
|
+
1324
|
5686
|
+
1325
|
5687
|
+
1326
|
5688
|
+
1327
|
5689
|
+
1328
|
5690
|
+
1329
|
5691
|
+
1330
|
5692
|
+
1331
|
5693
|
+
1332
|
5694
|
+
1333
|
5695
|
+
1334
|
5696
|
+
1335
|
5697
|
+
1336
|
5698
|
+
1337
|
5699
|
+
1338
|
5700
|
+
1339
|
5701
|
+
1340
|
5702
|
+
1341
|
5703
|
+
1342
|
5704
|
+
1343
|
5705
|
+
1344
|
5706
|
+
1345
|
5707
|
+
1346</pre>
|
5312
5708
|
</td>
|
5313
5709
|
<td>
|
5314
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5710
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1223</span>
|
5315
5711
|
|
5316
5712
|
<span class='kw'>def</span> <span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span> <span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='id identifier rubyid_checkInvalids'>checkInvalids</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='rparen'>)</span>
|
5317
5713
|
|
@@ -5443,9 +5839,9 @@ exclusive.</p>
|
|
5443
5839
|
</div>
|
5444
5840
|
|
5445
5841
|
<div class="method_details ">
|
5446
|
-
<h3 class="signature " id="
|
5842
|
+
<h3 class="signature " id="setOptionSubcmd-instance_method">
|
5447
5843
|
|
5448
|
-
- (<tt>Object</tt>) <strong>
|
5844
|
+
- (<tt>Object</tt>) <strong>setOptionSubcmd</strong>(opts, subs)
|
5449
5845
|
|
5450
5846
|
|
5451
5847
|
|
@@ -5454,7 +5850,7 @@ exclusive.</p>
|
|
5454
5850
|
</h3><div class="docstring">
|
5455
5851
|
<div class="discussion">
|
5456
5852
|
|
5457
|
-
<p>Set
|
5853
|
+
<p>Set command (subcommand) suboptions and subcmds.</p>
|
5458
5854
|
|
5459
5855
|
|
5460
5856
|
</div>
|
@@ -5465,17 +5861,12 @@ exclusive.</p>
|
|
5465
5861
|
|
5466
5862
|
<li>
|
5467
5863
|
|
5468
|
-
<span class='name'>
|
5469
|
-
|
5864
|
+
<span class='name'>opts</span>
|
5470
5865
|
|
5471
|
-
<span class='type'>(<tt>Proc</tt>)</span>
|
5472
5866
|
|
5867
|
+
<span class='type'>(<tt>Array<<span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span>></tt>)</span>
|
5473
5868
|
|
5474
5869
|
|
5475
|
-
—
|
5476
|
-
<div class='inline'>
|
5477
|
-
<p>Rule to check after command line parsing.</p>
|
5478
|
-
</div>
|
5479
5870
|
|
5480
5871
|
</li>
|
5481
5872
|
|
@@ -5488,15 +5879,27 @@ exclusive.</p>
|
|
5488
5879
|
<pre class="lines">
|
5489
5880
|
|
5490
5881
|
|
5491
|
-
|
5492
|
-
|
5493
|
-
|
5882
|
+
1128
|
5883
|
+
1129
|
5884
|
+
1130
|
5885
|
+
1131
|
5886
|
+
1132
|
5887
|
+
1133
|
5888
|
+
1134
|
5889
|
+
1135
|
5890
|
+
1136</pre>
|
5494
5891
|
</td>
|
5495
5892
|
<td>
|
5496
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5893
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1128</span>
|
5497
5894
|
|
5498
|
-
<span class='kw'>def</span> <span class='id identifier
|
5499
|
-
<span class='
|
5895
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_setOptionSubcmd'>setOptionSubcmd</span><span class='lparen'>(</span> <span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='id identifier rubyid_subs'>subs</span> <span class='rparen'>)</span>
|
5896
|
+
<span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
5897
|
+
<span class='id identifier rubyid_addOption'>addOption</span><span class='lparen'>(</span> <span class='id identifier rubyid_i'>i</span> <span class='rparen'>)</span>
|
5898
|
+
<span class='kw'>end</span>
|
5899
|
+
|
5900
|
+
<span class='id identifier rubyid_subs'>subs</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
5901
|
+
<span class='id identifier rubyid_addSubcmd'>addSubcmd</span><span class='lparen'>(</span> <span class='id identifier rubyid_i'>i</span> <span class='rparen'>)</span>
|
5902
|
+
<span class='kw'>end</span>
|
5500
5903
|
<span class='kw'>end</span></pre>
|
5501
5904
|
</td>
|
5502
5905
|
</tr>
|
@@ -5504,9 +5907,9 @@ exclusive.</p>
|
|
5504
5907
|
</div>
|
5505
5908
|
|
5506
5909
|
<div class="method_details ">
|
5507
|
-
<h3 class="signature " id="
|
5910
|
+
<h3 class="signature " id="setRuleCheck-instance_method">
|
5508
5911
|
|
5509
|
-
- (<tt>Object</tt>) <strong>
|
5912
|
+
- (<tt>Object</tt>) <strong>setRuleCheck</strong>(&rule)
|
5510
5913
|
|
5511
5914
|
|
5512
5915
|
|
@@ -5515,7 +5918,7 @@ exclusive.</p>
|
|
5515
5918
|
</h3><div class="docstring">
|
5516
5919
|
<div class="discussion">
|
5517
5920
|
|
5518
|
-
<p>Set
|
5921
|
+
<p>Set rule checks for the option.</p>
|
5519
5922
|
|
5520
5923
|
|
5521
5924
|
</div>
|
@@ -5526,12 +5929,17 @@ exclusive.</p>
|
|
5526
5929
|
|
5527
5930
|
<li>
|
5528
5931
|
|
5529
|
-
<span class='name'>
|
5932
|
+
<span class='name'>rule</span>
|
5530
5933
|
|
5531
5934
|
|
5532
|
-
<span class='type'>(<tt>
|
5935
|
+
<span class='type'>(<tt>Proc</tt>)</span>
|
5936
|
+
|
5533
5937
|
|
5534
5938
|
|
5939
|
+
—
|
5940
|
+
<div class='inline'>
|
5941
|
+
<p>Rule to check after command line parsing.</p>
|
5942
|
+
</div>
|
5535
5943
|
|
5536
5944
|
</li>
|
5537
5945
|
|
@@ -5544,33 +5952,15 @@ exclusive.</p>
|
|
5544
5952
|
<pre class="lines">
|
5545
5953
|
|
5546
5954
|
|
5547
|
-
|
5548
|
-
|
5549
|
-
|
5550
|
-
1068
|
5551
|
-
1069
|
5552
|
-
1070
|
5553
|
-
1071
|
5554
|
-
1072
|
5555
|
-
1073
|
5556
|
-
1074
|
5557
|
-
1075
|
5558
|
-
1076</pre>
|
5955
|
+
1168
|
5956
|
+
1169
|
5957
|
+
1170</pre>
|
5559
5958
|
</td>
|
5560
5959
|
<td>
|
5561
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5562
|
-
|
5563
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_setSubopt'>setSubopt</span><span class='lparen'>(</span> <span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='id identifier rubyid_subs'>subs</span> <span class='rparen'>)</span>
|
5564
|
-
<span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
5565
|
-
<span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_parent'>parent</span> <span class='op'>=</span> <span class='kw'>self</span>
|
5566
|
-
<span class='kw'>end</span>
|
5567
|
-
|
5568
|
-
<span class='id identifier rubyid_subs'>subs</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
5569
|
-
<span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_parent'>parent</span> <span class='op'>=</span> <span class='kw'>self</span>
|
5570
|
-
<span class='kw'>end</span>
|
5960
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1168</span>
|
5571
5961
|
|
5572
|
-
|
5573
|
-
<span class='ivar'>@
|
5962
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_setRuleCheck'>setRuleCheck</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_rule'>rule</span> <span class='rparen'>)</span>
|
5963
|
+
<span class='ivar'>@rules</span> <span class='op'>=</span> <span class='id identifier rubyid_rule'>rule</span>
|
5574
5964
|
<span class='kw'>end</span></pre>
|
5575
5965
|
</td>
|
5576
5966
|
</tr>
|
@@ -5603,12 +5993,12 @@ exclusive.</p>
|
|
5603
5993
|
<pre class="lines">
|
5604
5994
|
|
5605
5995
|
|
5606
|
-
|
5607
|
-
|
5608
|
-
|
5996
|
+
1679
|
5997
|
+
1680
|
5998
|
+
1681</pre>
|
5609
5999
|
</td>
|
5610
6000
|
<td>
|
5611
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6001
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1679</span>
|
5612
6002
|
|
5613
6003
|
<span class='kw'>def</span> <span class='id identifier rubyid_setUsageFooter'>setUsageFooter</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
5614
6004
|
<span class='ivar'>@config</span><span class='lbracket'>[</span> <span class='symbol'>:footer</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_str'>str</span>
|
@@ -5644,12 +6034,12 @@ exclusive.</p>
|
|
5644
6034
|
<pre class="lines">
|
5645
6035
|
|
5646
6036
|
|
5647
|
-
|
5648
|
-
|
5649
|
-
|
6037
|
+
1673
|
6038
|
+
1674
|
6039
|
+
1675</pre>
|
5650
6040
|
</td>
|
5651
6041
|
<td>
|
5652
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6042
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1673</span>
|
5653
6043
|
|
5654
6044
|
<span class='kw'>def</span> <span class='id identifier rubyid_setUsageHeader'>setUsageHeader</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
5655
6045
|
<span class='ivar'>@config</span><span class='lbracket'>[</span> <span class='symbol'>:header</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_str'>str</span>
|
@@ -5698,12 +6088,12 @@ exclusive.</p>
|
|
5698
6088
|
<pre class="lines">
|
5699
6089
|
|
5700
6090
|
|
5701
|
-
|
5702
|
-
|
5703
|
-
|
6091
|
+
1645
|
6092
|
+
1646
|
6093
|
+
1647</pre>
|
5704
6094
|
</td>
|
5705
6095
|
<td>
|
5706
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6096
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1645</span>
|
5707
6097
|
|
5708
6098
|
<span class='kw'>def</span> <span class='id identifier rubyid_silent?'>silent?</span>
|
5709
6099
|
<span class='ivar'>@type</span> <span class='op'>==</span> <span class='symbol'>:silent</span>
|
@@ -5739,12 +6129,12 @@ exclusive.</p>
|
|
5739
6129
|
<pre class="lines">
|
5740
6130
|
|
5741
6131
|
|
5742
|
-
|
5743
|
-
|
5744
|
-
|
6132
|
+
1468
|
6133
|
+
1469
|
6134
|
+
1470</pre>
|
5745
6135
|
</td>
|
5746
6136
|
<td>
|
5747
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6137
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1468</span>
|
5748
6138
|
|
5749
6139
|
<span class='kw'>def</span> <span class='id identifier rubyid_suball'>suball</span>
|
5750
6140
|
<span class='ivar'>@subopt</span> <span class='op'>+</span> <span class='ivar'>@subcmd</span>
|
@@ -5780,31 +6170,31 @@ exclusive.</p>
|
|
5780
6170
|
<pre class="lines">
|
5781
6171
|
|
5782
6172
|
|
5783
|
-
|
5784
|
-
|
5785
|
-
|
5786
|
-
|
5787
|
-
|
5788
|
-
|
5789
|
-
|
5790
|
-
|
5791
|
-
|
5792
|
-
|
5793
|
-
|
5794
|
-
|
5795
|
-
|
5796
|
-
|
5797
|
-
|
5798
|
-
|
5799
|
-
|
5800
|
-
|
5801
|
-
|
5802
|
-
|
5803
|
-
|
5804
|
-
|
5805
|
-
</td>
|
5806
|
-
<td>
|
5807
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6173
|
+
1798
|
6174
|
+
1799
|
6175
|
+
1800
|
6176
|
+
1801
|
6177
|
+
1802
|
6178
|
+
1803
|
6179
|
+
1804
|
6180
|
+
1805
|
6181
|
+
1806
|
6182
|
+
1807
|
6183
|
+
1808
|
6184
|
+
1809
|
6185
|
+
1810
|
6186
|
+
1811
|
6187
|
+
1812
|
6188
|
+
1813
|
6189
|
+
1814
|
6190
|
+
1815
|
6191
|
+
1816
|
6192
|
+
1817
|
6193
|
+
1818
|
6194
|
+
1819</pre>
|
6195
|
+
</td>
|
6196
|
+
<td>
|
6197
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1798</span>
|
5808
6198
|
|
5809
6199
|
<span class='kw'>def</span> <span class='id identifier rubyid_suboptDoc'>suboptDoc</span>
|
5810
6200
|
|
@@ -5899,23 +6289,23 @@ exclusive.</p>
|
|
5899
6289
|
<pre class="lines">
|
5900
6290
|
|
5901
6291
|
|
5902
|
-
|
5903
|
-
|
5904
|
-
|
5905
|
-
|
5906
|
-
|
5907
|
-
|
5908
|
-
|
5909
|
-
|
5910
|
-
|
5911
|
-
|
5912
|
-
|
5913
|
-
|
5914
|
-
|
5915
|
-
|
6292
|
+
1692
|
6293
|
+
1693
|
6294
|
+
1694
|
6295
|
+
1695
|
6296
|
+
1696
|
6297
|
+
1697
|
6298
|
+
1698
|
6299
|
+
1699
|
6300
|
+
1700
|
6301
|
+
1701
|
6302
|
+
1702
|
6303
|
+
1703
|
6304
|
+
1704
|
6305
|
+
1705</pre>
|
5916
6306
|
</td>
|
5917
6307
|
<td>
|
5918
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6308
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1692</span>
|
5919
6309
|
|
5920
6310
|
<span class='kw'>def</span> <span class='id identifier rubyid_usage'>usage</span><span class='lparen'>(</span> <span class='id identifier rubyid_doExit'>doExit</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_ruleHelp'>ruleHelp</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
5921
6311
|
|
@@ -5962,19 +6352,19 @@ exclusive.</p>
|
|
5962
6352
|
<pre class="lines">
|
5963
6353
|
|
5964
6354
|
|
5965
|
-
|
5966
|
-
|
5967
|
-
|
5968
|
-
|
5969
|
-
|
5970
|
-
|
5971
|
-
|
5972
|
-
|
5973
|
-
|
5974
|
-
|
6355
|
+
1719
|
6356
|
+
1720
|
6357
|
+
1721
|
6358
|
+
1722
|
6359
|
+
1723
|
6360
|
+
1724
|
6361
|
+
1725
|
6362
|
+
1726
|
6363
|
+
1727
|
6364
|
+
1728</pre>
|
5975
6365
|
</td>
|
5976
6366
|
<td>
|
5977
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6367
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1719</span>
|
5978
6368
|
|
5979
6369
|
<span class='kw'>def</span> <span class='id identifier rubyid_usageCommand'>usageCommand</span>
|
5980
6370
|
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
@@ -6017,19 +6407,19 @@ exclusive.</p>
|
|
6017
6407
|
<pre class="lines">
|
6018
6408
|
|
6019
6409
|
|
6020
|
-
|
6021
|
-
|
6022
|
-
|
6023
|
-
|
6024
|
-
|
6025
|
-
|
6026
|
-
|
6410
|
+
1709
|
6411
|
+
1710
|
6412
|
+
1711
|
6413
|
+
1712
|
6414
|
+
1713
|
6415
|
+
1714
|
6416
|
+
1715</pre>
|
6027
6417
|
</td>
|
6028
6418
|
<td>
|
6029
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6419
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1709</span>
|
6030
6420
|
|
6031
6421
|
<span class='kw'>def</span> <span class='id identifier rubyid_usageIfHelp'>usageIfHelp</span>
|
6032
|
-
<span class='kw'>if</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>help</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_given'>given</span>
|
6422
|
+
<span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_argByName'>argByName</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>help</span><span class='tstring_end'>'</span></span> <span class='rparen'>)</span> <span class='op'>&&</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>help</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_given'>given</span>
|
6033
6423
|
<span class='id identifier rubyid_usage'>usage</span>
|
6034
6424
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_hasSubcmd'>hasSubcmd</span> <span class='op'>&&</span> <span class='id identifier rubyid_givenSubcmd'>givenSubcmd</span>
|
6035
6425
|
<span class='id identifier rubyid_givenSubcmd'>givenSubcmd</span><span class='period'>.</span><span class='id identifier rubyid_usageIfHelp'>usageIfHelp</span>
|
@@ -6066,28 +6456,28 @@ exclusive.</p>
|
|
6066
6456
|
<pre class="lines">
|
6067
6457
|
|
6068
6458
|
|
6069
|
-
|
6070
|
-
|
6071
|
-
|
6072
|
-
|
6073
|
-
|
6074
|
-
|
6075
|
-
|
6076
|
-
|
6077
|
-
|
6078
|
-
|
6079
|
-
|
6080
|
-
|
6081
|
-
|
6082
|
-
|
6083
|
-
|
6084
|
-
|
6085
|
-
|
6086
|
-
|
6087
|
-
|
6459
|
+
1731
|
6460
|
+
1732
|
6461
|
+
1733
|
6462
|
+
1734
|
6463
|
+
1735
|
6464
|
+
1736
|
6465
|
+
1737
|
6466
|
+
1738
|
6467
|
+
1739
|
6468
|
+
1740
|
6469
|
+
1741
|
6470
|
+
1742
|
6471
|
+
1743
|
6472
|
+
1744
|
6473
|
+
1745
|
6474
|
+
1746
|
6475
|
+
1747
|
6476
|
+
1748
|
6477
|
+
1749</pre>
|
6088
6478
|
</td>
|
6089
6479
|
<td>
|
6090
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6480
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1731</span>
|
6091
6481
|
|
6092
6482
|
<span class='kw'>def</span> <span class='id identifier rubyid_usageNormal'>usageNormal</span>
|
6093
6483
|
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
@@ -6140,12 +6530,12 @@ href="http://'file'">Opt</a>".</p>
|
|
6140
6530
|
<pre class="lines">
|
6141
6531
|
|
6142
6532
|
|
6143
|
-
|
6144
|
-
|
6145
|
-
|
6533
|
+
1500
|
6534
|
+
1501
|
6535
|
+
1502</pre>
|
6146
6536
|
</td>
|
6147
6537
|
<td>
|
6148
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6538
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1500</span>
|
6149
6539
|
|
6150
6540
|
<span class='kw'>def</span> <span class='op'>~</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
6151
6541
|
<span class='ivar'>@value</span>
|
@@ -6160,7 +6550,7 @@ href="http://'file'">Opt</a>".</p>
|
|
6160
6550
|
</div>
|
6161
6551
|
|
6162
6552
|
<div id="footer">
|
6163
|
-
Generated on
|
6553
|
+
Generated on Sat Nov 22 10:05:15 2014 by
|
6164
6554
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
6165
6555
|
0.8.6.1 (ruby-1.9.3).
|
6166
6556
|
</div>
|