como 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/README.rdoc +8 -0
- data/doc/Como/ArgsParseState.html +50 -50
- data/doc/Como/ComoCommon.html +17 -17
- data/doc/Como/MainOpt.html +46 -46
- data/doc/Como/Opt/ErrorWithData.html +10 -10
- data/doc/Como/Opt/InvalidOption.html +1 -1
- data/doc/Como/Opt/MissingArgument.html +1 -1
- data/doc/Como/Opt.html +883 -1175
- data/doc/Como/RuleCheck.html +86 -86
- data/doc/Como/RuleDisplay.html +79 -79
- data/doc/Como/Spec.html +357 -199
- data/doc/Como.html +82 -13
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +9 -2
- data/doc/file.README.html +8 -1
- data/doc/index.html +8 -1
- data/doc/method_list.html +62 -80
- data/doc/top-level-namespace.html +1 -1
- data/lib/como.rb +144 -93
- data/lib/version.rb +1 -1
- data/test/como_type_prim +27 -0
- data/test/golden/compatible.txt +11 -11
- data/test/golden/config.txt +5 -5
- data/test/golden/options.txt +11 -11
- data/test/golden/rule_1.txt +13 -13
- data/test/golden/rule_2.txt +13 -13
- data/test/golden/subcmd_config.txt +2 -2
- data/test/golden/type_prim.txt +465 -0
- data/test/test_como.rb +8 -3
- data/test/test_type_prim +29 -0
- metadata +5 -2
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
= Version history
|
2
2
|
|
3
|
+
[0.2.0] Support for option type definition through primitives.
|
4
|
+
Almost fully backwards compatible with previous versions.
|
5
|
+
|
6
|
+
[0.1.7] Added to_hopt method to Opt.
|
7
|
+
|
3
8
|
[0.1.6] Added to_hash method to Opt.
|
4
9
|
|
5
10
|
[0.1.5] Moved evalCheck from private methods to public methods.
|
data/README.rdoc
CHANGED
@@ -16,6 +16,14 @@ Main documentation is generated from Como source (See:
|
|
16
16
|
doc/Como.html). Test files (in "test" directory) can be used as
|
17
17
|
examples on how the features are used.
|
18
18
|
|
19
|
+
== Other versions
|
20
|
+
|
21
|
+
There is a C language version of Como in
|
22
|
+
https://github.com/tisannai/como. Feature wise it is similar to Ruby
|
23
|
+
Como, but a subset. Usage is also fairly similar, but (obviously) not
|
24
|
+
identical.
|
25
|
+
|
26
|
+
|
19
27
|
== Changes
|
20
28
|
|
21
29
|
See CHANGELOG.rdoc.
|
@@ -443,13 +443,13 @@
|
|
443
443
|
<pre class="lines">
|
444
444
|
|
445
445
|
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
446
|
+
2121
|
447
|
+
2122
|
448
|
+
2123
|
449
|
+
2124</pre>
|
450
450
|
</td>
|
451
451
|
<td>
|
452
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
452
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2121</span>
|
453
453
|
|
454
454
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_list'>list</span> <span class='rparen'>)</span>
|
455
455
|
<span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span> <span class='id identifier rubyid_list'>list</span> <span class='rparen'>)</span>
|
@@ -506,12 +506,12 @@
|
|
506
506
|
<pre class="lines">
|
507
507
|
|
508
508
|
|
509
|
-
|
510
|
-
|
511
|
-
|
509
|
+
2157
|
510
|
+
2158
|
511
|
+
2159</pre>
|
512
512
|
</td>
|
513
513
|
<td>
|
514
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
514
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2157</span>
|
515
515
|
|
516
516
|
<span class='kw'>def</span> <span class='id identifier rubyid_done?'>done?</span>
|
517
517
|
<span class='ivar'>@idx</span> <span class='op'>>=</span> <span class='ivar'>@list</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
@@ -547,12 +547,12 @@
|
|
547
547
|
<pre class="lines">
|
548
548
|
|
549
549
|
|
550
|
-
|
551
|
-
|
552
|
-
|
550
|
+
2142
|
551
|
+
2143
|
552
|
+
2144</pre>
|
553
553
|
</td>
|
554
554
|
<td>
|
555
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
555
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2142</span>
|
556
556
|
|
557
557
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span> <span class='id identifier rubyid_idx'>idx</span> <span class='op'>=</span> <span class='ivar'>@idx</span> <span class='rparen'>)</span>
|
558
558
|
<span class='ivar'>@args</span><span class='lbracket'>[</span> <span class='id identifier rubyid_idx'>idx</span> <span class='rbracket'>]</span>
|
@@ -588,12 +588,12 @@
|
|
588
588
|
<pre class="lines">
|
589
589
|
|
590
590
|
|
591
|
-
|
592
|
-
|
593
|
-
|
591
|
+
2163
|
592
|
+
2164
|
593
|
+
2165</pre>
|
594
594
|
</td>
|
595
595
|
<td>
|
596
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
596
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2163</span>
|
597
597
|
|
598
598
|
<span class='kw'>def</span> <span class='id identifier rubyid_isOpt'>isOpt</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span> <span class='rparen'>)</span>
|
599
599
|
<span class='id identifier rubyid_str'>str</span><span class='lbracket'>[</span><span class='int'>0</span><span class='op'>..</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-</span><span class='tstring_end'>"</span></span>
|
@@ -629,12 +629,12 @@
|
|
629
629
|
<pre class="lines">
|
630
630
|
|
631
631
|
|
632
|
-
|
633
|
-
|
634
|
-
|
632
|
+
2168
|
633
|
+
2169
|
634
|
+
2170</pre>
|
635
635
|
</td>
|
636
636
|
<td>
|
637
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
637
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2168</span>
|
638
638
|
|
639
639
|
<span class='kw'>def</span> <span class='id identifier rubyid_isOptTerm'>isOptTerm</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span> <span class='rparen'>)</span>
|
640
640
|
<span class='id identifier rubyid_str'>str</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>--</span><span class='tstring_end'>"</span></span>
|
@@ -670,12 +670,12 @@
|
|
670
670
|
<pre class="lines">
|
671
671
|
|
672
672
|
|
673
|
-
|
674
|
-
|
675
|
-
|
673
|
+
2147
|
674
|
+
2148
|
675
|
+
2149</pre>
|
676
676
|
</td>
|
677
677
|
<td>
|
678
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
678
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2147</span>
|
679
679
|
|
680
680
|
<span class='kw'>def</span> <span class='id identifier rubyid_last'>last</span><span class='lparen'>(</span> <span class='id identifier rubyid_idx'>idx</span> <span class='op'>=</span> <span class='ivar'>@idx</span> <span class='rparen'>)</span>
|
681
681
|
<span class='id identifier rubyid_idx'>idx</span> <span class='op'>==</span> <span class='lparen'>(</span> <span class='ivar'>@args</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='op'>-</span><span class='int'>1</span> <span class='rparen'>)</span>
|
@@ -711,12 +711,12 @@
|
|
711
711
|
<pre class="lines">
|
712
712
|
|
713
713
|
|
714
|
-
|
715
|
-
|
716
|
-
|
714
|
+
2132
|
715
|
+
2133
|
716
|
+
2134</pre>
|
717
717
|
</td>
|
718
718
|
<td>
|
719
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
719
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2132</span>
|
720
720
|
|
721
721
|
<span class='kw'>def</span> <span class='kw'>next</span>
|
722
722
|
<span class='ivar'>@idx</span> <span class='op'>+=</span> <span class='int'>1</span>
|
@@ -752,12 +752,12 @@
|
|
752
752
|
<pre class="lines">
|
753
753
|
|
754
754
|
|
755
|
-
|
756
|
-
|
757
|
-
|
755
|
+
2137
|
756
|
+
2138
|
757
|
+
2139</pre>
|
758
758
|
</td>
|
759
759
|
<td>
|
760
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
760
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2137</span>
|
761
761
|
|
762
762
|
<span class='kw'>def</span> <span class='id identifier rubyid_prev'>prev</span>
|
763
763
|
<span class='ivar'>@idx</span> <span class='op'>-=</span> <span class='int'>1</span>
|
@@ -793,12 +793,12 @@
|
|
793
793
|
<pre class="lines">
|
794
794
|
|
795
795
|
|
796
|
-
|
797
|
-
|
798
|
-
|
796
|
+
2152
|
797
|
+
2153
|
798
|
+
2154</pre>
|
799
799
|
</td>
|
800
800
|
<td>
|
801
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
801
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2152</span>
|
802
802
|
|
803
803
|
<span class='kw'>def</span> <span class='id identifier rubyid_rest'>rest</span><span class='lparen'>(</span> <span class='id identifier rubyid_idx'>idx</span> <span class='op'>=</span> <span class='ivar'>@idx</span> <span class='rparen'>)</span>
|
804
804
|
<span class='ivar'>@args</span><span class='lbracket'>[</span> <span class='id identifier rubyid_idx'>idx</span><span class='op'>..</span><span class='op'>-</span><span class='int'>1</span> <span class='rbracket'>]</span>
|
@@ -834,12 +834,12 @@
|
|
834
834
|
<pre class="lines">
|
835
835
|
|
836
836
|
|
837
|
-
|
838
|
-
|
839
|
-
|
837
|
+
2127
|
838
|
+
2128
|
839
|
+
2129</pre>
|
840
840
|
</td>
|
841
841
|
<td>
|
842
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
842
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2127</span>
|
843
843
|
|
844
844
|
<span class='kw'>def</span> <span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span> <span class='id identifier rubyid_list'>list</span> <span class='rparen'>)</span>
|
845
845
|
<span class='ivar'>@args</span> <span class='op'>=</span> <span class='id identifier rubyid_list'>list</span>
|
@@ -875,16 +875,16 @@
|
|
875
875
|
<pre class="lines">
|
876
876
|
|
877
877
|
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
878
|
+
2173
|
879
|
+
2174
|
880
|
+
2175
|
881
|
+
2176
|
882
|
+
2177
|
883
|
+
2178
|
884
|
+
2179</pre>
|
885
885
|
</td>
|
886
886
|
<td>
|
887
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
887
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2173</span>
|
888
888
|
|
889
889
|
<span class='kw'>def</span> <span class='id identifier rubyid_toValue'>toValue</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span> <span class='rparen'>)</span>
|
890
890
|
<span class='kw'>if</span> <span class='id identifier rubyid_str'>str</span><span class='lbracket'>[</span><span class='int'>0</span><span class='op'>..</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\</span><span class='tstring_end'>"</span></span>
|
@@ -903,7 +903,7 @@
|
|
903
903
|
</div>
|
904
904
|
|
905
905
|
<div id="footer">
|
906
|
-
Generated on
|
906
|
+
Generated on Fri Jul 15 20:24:23 2016 by
|
907
907
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
908
908
|
0.8.7.6 (ruby-2.3.1).
|
909
909
|
</div>
|
data/doc/Como/ComoCommon.html
CHANGED
@@ -299,12 +299,12 @@
|
|
299
299
|
<pre class="lines">
|
300
300
|
|
301
301
|
|
302
|
-
|
303
|
-
|
304
|
-
|
302
|
+
524
|
303
|
+
525
|
304
|
+
526</pre>
|
305
305
|
</td>
|
306
306
|
<td>
|
307
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
307
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 524</span>
|
308
308
|
|
309
309
|
<span class='kw'>def</span> <span class='const'>ComoCommon</span><span class='period'>.</span><span class='id identifier rubyid_getIo'>getIo</span>
|
310
310
|
<span class='cvar'>@@io</span>
|
@@ -378,12 +378,12 @@
|
|
378
378
|
<pre class="lines">
|
379
379
|
|
380
380
|
|
381
|
-
|
382
|
-
|
383
|
-
|
381
|
+
540
|
382
|
+
541
|
383
|
+
542</pre>
|
384
384
|
</td>
|
385
385
|
<td>
|
386
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
386
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 540</span>
|
387
387
|
|
388
388
|
<span class='kw'>def</span> <span class='const'>ComoCommon</span><span class='period'>.</span><span class='id identifier rubyid_runHook'>runHook</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
|
389
389
|
<span class='cvar'>@@hook</span><span class='lbracket'>[</span> <span class='id identifier rubyid_name'>name</span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_yield'>yield</span><span class='lparen'>(</span> <span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span> <span class='kw'>if</span> <span class='cvar'>@@hook</span><span class='lbracket'>[</span> <span class='id identifier rubyid_name'>name</span> <span class='rbracket'>]</span>
|
@@ -457,12 +457,12 @@
|
|
457
457
|
<pre class="lines">
|
458
458
|
|
459
459
|
|
460
|
-
|
461
|
-
|
462
|
-
|
460
|
+
532
|
461
|
+
533
|
462
|
+
534</pre>
|
463
463
|
</td>
|
464
464
|
<td>
|
465
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
465
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 532</span>
|
466
466
|
|
467
467
|
<span class='kw'>def</span> <span class='const'>ComoCommon</span><span class='period'>.</span><span class='id identifier rubyid_setHook'>setHook</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_code'>code</span> <span class='rparen'>)</span>
|
468
468
|
<span class='cvar'>@@hook</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_code'>code</span>
|
@@ -498,12 +498,12 @@
|
|
498
498
|
<pre class="lines">
|
499
499
|
|
500
500
|
|
501
|
-
|
502
|
-
|
503
|
-
|
501
|
+
519
|
502
|
+
520
|
503
|
+
521</pre>
|
504
504
|
</td>
|
505
505
|
<td>
|
506
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
506
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 519</span>
|
507
507
|
|
508
508
|
<span class='kw'>def</span> <span class='const'>ComoCommon</span><span class='period'>.</span><span class='id identifier rubyid_setIo'>setIo</span><span class='lparen'>(</span> <span class='id identifier rubyid_io'>io</span> <span class='rparen'>)</span>
|
509
509
|
<span class='cvar'>@@io</span> <span class='op'>=</span> <span class='id identifier rubyid_io'>io</span>
|
@@ -518,7 +518,7 @@
|
|
518
518
|
</div>
|
519
519
|
|
520
520
|
<div id="footer">
|
521
|
-
Generated on
|
521
|
+
Generated on Fri Jul 15 20:24:23 2016 by
|
522
522
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
523
523
|
0.8.7.6 (ruby-2.3.1).
|
524
524
|
</div>
|
data/doc/Como/MainOpt.html
CHANGED
@@ -311,7 +311,7 @@
|
|
311
311
|
|
312
312
|
|
313
313
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Opt.html" title="Como::Opt (class)">Opt</a></span></h3>
|
314
|
-
<p class="inherited"><span class='object_link'><a href="Opt.html#%5B%5D-class_method" title="Como::Opt.[] (method)">[]</a></span>, <span class='object_link'><a href="Opt.html#%5B%5D-instance_method" title="Como::Opt#[] (method)">#[]</a></span>, <span class='object_link'><a href="Opt.html#addOpt-class_method" title="Como::Opt.addOpt (method)">addOpt</a></span>, <span class='object_link'><a href="Opt.html#addOption-instance_method" title="Como::Opt#addOption (method)">#addOption</a></span>, <span class='object_link'><a href="Opt.html#addSubcmd-instance_method" title="Como::Opt#addSubcmd (method)">#addSubcmd</a></span>, <span class='object_link'><a href="Opt.html#apply-instance_method" title="Como::Opt#apply (method)">#apply</a></span>, <span class='object_link'><a href="Opt.html#applyConfig-instance_method" title="Como::Opt#applyConfig (method)">#applyConfig</a></span>, <span class='object_link'><a href="Opt.html#argById-instance_method" title="Como::Opt#argById (method)">#argById</a></span>, <span class='object_link'><a href="Opt.html#argByName-instance_method" title="Como::Opt#argByName (method)">#argByName</a></span>, <span class='object_link'><a href="Opt.html#author-class_method" title="Como::Opt.author (method)">author</a></span>, <span class='object_link'><a href="Opt.html#check-instance_method" title="Como::Opt#check (method)">#check</a></span>, <span class='object_link'><a href="Opt.html#checkAlso-instance_method" title="Como::Opt#checkAlso (method)">#checkAlso</a></span>, <span class='object_link'><a href="Opt.html#checkMissing-instance_method" title="Como::Opt#checkMissing (method)">#checkMissing</a></span>, <span class='object_link'><a href="Opt.html#checkRule-instance_method" title="Como::Opt#checkRule (method)">#checkRule</a></span>, <span class='object_link'><a href="Opt.html#cmdline-instance_method" title="Como::Opt#cmdline (method)">#cmdline</a></span>, <span class='object_link'><a href="Opt.html#configGet-class_method" title="Como::Opt.configGet (method)">configGet</a></span>, <span class='object_link'><a href="Opt.html#configOverlay-class_method" title="Como::Opt.configOverlay (method)">configOverlay</a></span>, <span class='object_link'><a href="Opt.html#configSet-class_method" title="Como::Opt.configSet (method)">configSet</a></span>, <span class='object_link'><a href="Opt.html#current-class_method" title="Como::Opt.current (method)">current</a></span>, <span class='object_link'><a href="Opt.html#default-class_method" title="Como::Opt.default (method)">default</a></span>, <span class='object_link'><a href="Opt.html#default-instance_method" title="Como::Opt#default (method)">#default</a></span>, <span class='object_link'><a href="Opt.html#defaultOpt-class_method" title="Como::Opt.defaultOpt (method)">defaultOpt</a></span>, <span class='object_link'><a href="Opt.html#each-class_method" title="Como::Opt.each (method)">each</a></span>, <span class='object_link'><a href="Opt.html#each-instance_method" title="Como::Opt#each (method)">#each</a></span>, <span class='object_link'><a href="Opt.html#each_given-class_method" title="Como::Opt.each_given (method)">each_given</a></span>, <span class='object_link'><a href="Opt.html#each_given-instance_method" title="Como::Opt#each_given (method)">#each_given</a></span>, <span class='object_link'><a href="Opt.html#error-class_method" title="Como::Opt.error (method)">error</a></span>, <span class='object_link'><a href="Opt.html#error-instance_method" title="Como::Opt#error (method)">#error</a></span>, <span class='object_link'><a href="Opt.html#errornl-instance_method" title="Como::Opt#errornl (method)">#errornl</a></span>, <span class='object_link'><a href="Opt.html#evalCheck-instance_method" title="Como::Opt#evalCheck (method)">#evalCheck</a></span>, <span class='object_link'><a href="Opt.html#external-class_method" title="Como::Opt.external (method)">external</a></span>, <span class='object_link'><a href="Opt.html#fatal-class_method" title="Como::Opt.fatal (method)">fatal</a></span>, <span class='object_link'><a href="Opt.html#fatal-instance_method" title="Como::Opt#fatal (method)">#fatal</a></span>, <span class='object_link'><a href="Opt.html#findOpt-class_method" title="Como::Opt.findOpt (method)">findOpt</a></span>, <span class='object_link'><a href="Opt.html#findOpt-instance_method" title="Como::Opt#findOpt (method)">#findOpt</a></span>, <span class='object_link'><a href="Opt.html#full-class_method" title="Como::Opt.full (method)">full</a></span>, <span class='object_link'><a href="Opt.html#givenCount-instance_method" title="Como::Opt#givenCount (method)">#givenCount</a></span>, <span class='object_link'><a href="Opt.html#givenSubcmd-instance_method" title="Como::Opt#givenSubcmd (method)">#givenSubcmd</a></span>, <span class='object_link'><a href="Opt.html#
|
314
|
+
<p class="inherited"><span class='object_link'><a href="Opt.html#%5B%5D-class_method" title="Como::Opt.[] (method)">[]</a></span>, <span class='object_link'><a href="Opt.html#%5B%5D-instance_method" title="Como::Opt#[] (method)">#[]</a></span>, <span class='object_link'><a href="Opt.html#addOpt-class_method" title="Como::Opt.addOpt (method)">addOpt</a></span>, <span class='object_link'><a href="Opt.html#addOption-instance_method" title="Como::Opt#addOption (method)">#addOption</a></span>, <span class='object_link'><a href="Opt.html#addSubcmd-instance_method" title="Como::Opt#addSubcmd (method)">#addSubcmd</a></span>, <span class='object_link'><a href="Opt.html#apply-instance_method" title="Como::Opt#apply (method)">#apply</a></span>, <span class='object_link'><a href="Opt.html#applyConfig-instance_method" title="Como::Opt#applyConfig (method)">#applyConfig</a></span>, <span class='object_link'><a href="Opt.html#argById-instance_method" title="Como::Opt#argById (method)">#argById</a></span>, <span class='object_link'><a href="Opt.html#argByName-instance_method" title="Como::Opt#argByName (method)">#argByName</a></span>, <span class='object_link'><a href="Opt.html#author-class_method" title="Como::Opt.author (method)">author</a></span>, <span class='object_link'><a href="Opt.html#check-instance_method" title="Como::Opt#check (method)">#check</a></span>, <span class='object_link'><a href="Opt.html#checkAlso-instance_method" title="Como::Opt#checkAlso (method)">#checkAlso</a></span>, <span class='object_link'><a href="Opt.html#checkMissing-instance_method" title="Como::Opt#checkMissing (method)">#checkMissing</a></span>, <span class='object_link'><a href="Opt.html#checkRule-instance_method" title="Como::Opt#checkRule (method)">#checkRule</a></span>, <span class='object_link'><a href="Opt.html#cmdline-instance_method" title="Como::Opt#cmdline (method)">#cmdline</a></span>, <span class='object_link'><a href="Opt.html#configGet-class_method" title="Como::Opt.configGet (method)">configGet</a></span>, <span class='object_link'><a href="Opt.html#configOverlay-class_method" title="Como::Opt.configOverlay (method)">configOverlay</a></span>, <span class='object_link'><a href="Opt.html#configSet-class_method" title="Como::Opt.configSet (method)">configSet</a></span>, <span class='object_link'><a href="Opt.html#current-class_method" title="Como::Opt.current (method)">current</a></span>, <span class='object_link'><a href="Opt.html#default-class_method" title="Como::Opt.default (method)">default</a></span>, <span class='object_link'><a href="Opt.html#default-instance_method" title="Como::Opt#default (method)">#default</a></span>, <span class='object_link'><a href="Opt.html#defaultOpt-class_method" title="Como::Opt.defaultOpt (method)">defaultOpt</a></span>, <span class='object_link'><a href="Opt.html#each-class_method" title="Como::Opt.each (method)">each</a></span>, <span class='object_link'><a href="Opt.html#each-instance_method" title="Como::Opt#each (method)">#each</a></span>, <span class='object_link'><a href="Opt.html#each_given-class_method" title="Como::Opt.each_given (method)">each_given</a></span>, <span class='object_link'><a href="Opt.html#each_given-instance_method" title="Como::Opt#each_given (method)">#each_given</a></span>, <span class='object_link'><a href="Opt.html#error-class_method" title="Como::Opt.error (method)">error</a></span>, <span class='object_link'><a href="Opt.html#error-instance_method" title="Como::Opt#error (method)">#error</a></span>, <span class='object_link'><a href="Opt.html#errornl-instance_method" title="Como::Opt#errornl (method)">#errornl</a></span>, <span class='object_link'><a href="Opt.html#evalCheck-instance_method" title="Como::Opt#evalCheck (method)">#evalCheck</a></span>, <span class='object_link'><a href="Opt.html#external-class_method" title="Como::Opt.external (method)">external</a></span>, <span class='object_link'><a href="Opt.html#fatal-class_method" title="Como::Opt.fatal (method)">fatal</a></span>, <span class='object_link'><a href="Opt.html#fatal-instance_method" title="Como::Opt#fatal (method)">#fatal</a></span>, <span class='object_link'><a href="Opt.html#findOpt-class_method" title="Como::Opt.findOpt (method)">findOpt</a></span>, <span class='object_link'><a href="Opt.html#findOpt-instance_method" title="Como::Opt#findOpt (method)">#findOpt</a></span>, <span class='object_link'><a href="Opt.html#full-class_method" title="Como::Opt.full (method)">full</a></span>, <span class='object_link'><a href="Opt.html#givenCount-instance_method" title="Como::Opt#givenCount (method)">#givenCount</a></span>, <span class='object_link'><a href="Opt.html#givenSubcmd-instance_method" title="Como::Opt#givenSubcmd (method)">#givenSubcmd</a></span>, <span class='object_link'><a href="Opt.html#hasSwitchStyleDoc-instance_method" title="Como::Opt#hasSwitchStyleDoc (method)">#hasSwitchStyleDoc</a></span>, <span class='object_link'><a href="Opt.html#main-class_method" title="Como::Opt.main (method)">main</a></span>, <span class='object_link'><a href="Opt.html#opt-instance_method" title="Como::Opt#opt (method)">#opt</a></span>, <span class='object_link'><a href="Opt.html#params-instance_method" title="Como::Opt#params (method)">#params</a></span>, <span class='object_link'><a href="Opt.html#parse-instance_method" title="Como::Opt#parse (method)">#parse</a></span>, <span class='object_link'><a href="Opt.html#prim%3F-instance_method" title="Como::Opt#prim? (method)">#prim?</a></span>, <span class='object_link'><a href="Opt.html#progname-class_method" title="Como::Opt.progname (method)">progname</a></span>, <span class='object_link'><a href="Opt.html#reset-class_method" title="Como::Opt.reset (method)">reset</a></span>, <span class='object_link'><a href="Opt.html#setMain-class_method" title="Como::Opt.setMain (method)">setMain</a></span>, <span class='object_link'><a href="Opt.html#setOptionSubcmd-instance_method" title="Como::Opt#setOptionSubcmd (method)">#setOptionSubcmd</a></span>, <span class='object_link'><a href="Opt.html#setRuleCheck-instance_method" title="Como::Opt#setRuleCheck (method)">#setRuleCheck</a></span>, <span class='object_link'><a href="Opt.html#setSubcmd-class_method" title="Como::Opt.setSubcmd (method)">setSubcmd</a></span>, <span class='object_link'><a href="Opt.html#setUsageFooter-instance_method" title="Como::Opt#setUsageFooter (method)">#setUsageFooter</a></span>, <span class='object_link'><a href="Opt.html#setUsageHeader-instance_method" title="Como::Opt#setUsageHeader (method)">#setUsageHeader</a></span>, <span class='object_link'><a href="Opt.html#suball-instance_method" title="Como::Opt#suball (method)">#suball</a></span>, <span class='object_link'><a href="Opt.html#subcmd-class_method" title="Como::Opt.subcmd (method)">subcmd</a></span>, <span class='object_link'><a href="Opt.html#suboptDoc-instance_method" title="Como::Opt#suboptDoc (method)">#suboptDoc</a></span>, <span class='object_link'><a href="Opt.html#to_hash-instance_method" title="Como::Opt#to_hash (method)">#to_hash</a></span>, <span class='object_link'><a href="Opt.html#to_hopt-instance_method" title="Como::Opt#to_hopt (method)">#to_hopt</a></span>, <span class='object_link'><a href="Opt.html#usage-instance_method" title="Como::Opt#usage (method)">#usage</a></span>, <span class='object_link'><a href="Opt.html#usageIfHelp-instance_method" title="Como::Opt#usageIfHelp (method)">#usageIfHelp</a></span>, <span class='object_link'><a href="Opt.html#usageNormal-instance_method" title="Como::Opt#usageNormal (method)">#usageNormal</a></span>, <span class='object_link'><a href="Opt.html#warn-class_method" title="Como::Opt.warn (method)">warn</a></span>, <span class='object_link'><a href="Opt.html#warn-instance_method" title="Como::Opt#warn (method)">#warn</a></span>, <span class='object_link'><a href="Opt.html#year-class_method" title="Como::Opt.year (method)">year</a></span>, <span class='object_link'><a href="Opt.html#%7E-instance_method" title="Como::Opt#~ (method)">#~</a></span></p>
|
315
315
|
|
316
316
|
|
317
317
|
|
@@ -352,20 +352,20 @@
|
|
352
352
|
<pre class="lines">
|
353
353
|
|
354
354
|
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
355
|
+
2075
|
356
|
+
2076
|
357
|
+
2077
|
358
|
+
2078
|
359
|
+
2079
|
360
|
+
2080
|
361
|
+
2081
|
362
|
+
2082
|
363
|
+
2083
|
364
|
+
2084
|
365
|
+
2085</pre>
|
366
366
|
</td>
|
367
367
|
<td>
|
368
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
368
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2075</span>
|
369
369
|
|
370
370
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_author'>author</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='comma'>,</span>
|
371
371
|
<span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opt'>opt</span><span class='comma'>,</span>
|
@@ -416,12 +416,12 @@
|
|
416
416
|
<pre class="lines">
|
417
417
|
|
418
418
|
|
419
|
-
|
420
|
-
|
421
|
-
|
419
|
+
2071
|
420
|
+
2072
|
421
|
+
2073</pre>
|
422
422
|
</td>
|
423
423
|
<td>
|
424
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
424
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2071</span>
|
425
425
|
|
426
426
|
<span class='kw'>def</span> <span class='id identifier rubyid_author'>author</span>
|
427
427
|
<span class='ivar'>@author</span>
|
@@ -459,12 +459,12 @@
|
|
459
459
|
<pre class="lines">
|
460
460
|
|
461
461
|
|
462
|
-
|
463
|
-
|
464
|
-
|
462
|
+
2068
|
463
|
+
2069
|
464
|
+
2070</pre>
|
465
465
|
</td>
|
466
466
|
<td>
|
467
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
467
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2068</span>
|
468
468
|
|
469
469
|
<span class='kw'>def</span> <span class='id identifier rubyid_external'>external</span>
|
470
470
|
<span class='ivar'>@external</span>
|
@@ -502,12 +502,12 @@
|
|
502
502
|
<pre class="lines">
|
503
503
|
|
504
504
|
|
505
|
-
|
506
|
-
|
507
|
-
|
505
|
+
2071
|
506
|
+
2072
|
507
|
+
2073</pre>
|
508
508
|
</td>
|
509
509
|
<td>
|
510
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
510
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2071</span>
|
511
511
|
|
512
512
|
<span class='kw'>def</span> <span class='id identifier rubyid_year'>year</span>
|
513
513
|
<span class='ivar'>@year</span>
|
@@ -550,12 +550,12 @@
|
|
550
550
|
<pre class="lines">
|
551
551
|
|
552
552
|
|
553
|
-
|
554
|
-
|
555
|
-
|
553
|
+
2089
|
554
|
+
2090
|
555
|
+
2091</pre>
|
556
556
|
</td>
|
557
557
|
<td>
|
558
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
558
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2089</span>
|
559
559
|
|
560
560
|
<span class='kw'>def</span> <span class='id identifier rubyid_fullCommand'>fullCommand</span>
|
561
561
|
<span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_progname'>progname</span>
|
@@ -591,24 +591,24 @@
|
|
591
591
|
<pre class="lines">
|
592
592
|
|
593
593
|
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
594
|
+
2095
|
595
|
+
2096
|
596
|
+
2097
|
597
|
+
2098
|
598
|
+
2099
|
599
|
+
2100
|
600
|
+
2101
|
601
|
+
2102
|
602
|
+
2103
|
603
|
+
2104
|
604
|
+
2105
|
605
|
+
2106
|
606
|
+
2107
|
607
|
+
2108
|
608
|
+
2109</pre>
|
609
609
|
</td>
|
610
610
|
<td>
|
611
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
611
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2095</span>
|
612
612
|
|
613
613
|
<span class='kw'>def</span> <span class='id identifier rubyid_usageCommand'>usageCommand</span>
|
614
614
|
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\
|
@@ -635,7 +635,7 @@
|
|
635
635
|
</div>
|
636
636
|
|
637
637
|
<div id="footer">
|
638
|
-
Generated on
|
638
|
+
Generated on Fri Jul 15 20:24:23 2016 by
|
639
639
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
640
640
|
0.8.7.6 (ruby-2.3.1).
|
641
641
|
</div>
|
@@ -224,13 +224,13 @@
|
|
224
224
|
<pre class="lines">
|
225
225
|
|
226
226
|
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
227
|
+
945
|
228
|
+
946
|
229
|
+
947
|
230
|
+
948</pre>
|
231
231
|
</td>
|
232
232
|
<td>
|
233
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
233
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 945</span>
|
234
234
|
|
235
235
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
236
236
|
<span class='kw'>super</span><span class='lparen'>(</span> <span class='id identifier rubyid_message'>message</span> <span class='rparen'>)</span>
|
@@ -274,12 +274,12 @@
|
|
274
274
|
<pre class="lines">
|
275
275
|
|
276
276
|
|
277
|
-
|
278
|
-
|
279
|
-
|
277
|
+
942
|
278
|
+
943
|
279
|
+
944</pre>
|
280
280
|
</td>
|
281
281
|
<td>
|
282
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
282
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 942</span>
|
283
283
|
|
284
284
|
<span class='kw'>def</span> <span class='id identifier rubyid_data'>data</span>
|
285
285
|
<span class='ivar'>@data</span>
|
@@ -295,7 +295,7 @@
|
|
295
295
|
</div>
|
296
296
|
|
297
297
|
<div id="footer">
|
298
|
-
Generated on
|
298
|
+
Generated on Fri Jul 15 20:24:23 2016 by
|
299
299
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
300
|
0.8.7.6 (ruby-2.3.1).
|
301
301
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Fri Jul 15 20:24:23 2016 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.8.7.6 (ruby-2.3.1).
|
155
155
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Fri Jul 15 20:24:23 2016 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.8.7.6 (ruby-2.3.1).
|
155
155
|
</div>
|