como 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +8 -0
- data/doc/Como/ArgsParseState.html +50 -50
- data/doc/Como/ComoCommon.html +9 -9
- data/doc/Como/MainOpt.html +126 -43
- 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 +767 -741
- data/doc/Como/RuleCheck.html +87 -87
- data/doc/Como/RuleDisplay.html +79 -79
- data/doc/Como/Spec.html +76 -90
- data/doc/Como.html +7 -6
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +9 -2
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +81 -75
- data/doc/top-level-namespace.html +1 -1
- data/lib/como.rb +160 -127
- data/test/como_compatible +1 -4
- data/test/como_config +4 -6
- data/test/como_options +2 -11
- data/test/como_queries +1 -4
- data/test/como_subcmd +2 -16
- data/test/como_subcmd_config +6 -9
- data/test/como_subcmd_rule +69 -0
- data/test/golden/compatible.txt +108 -97
- data/test/golden/config.txt +45 -149
- data/test/golden/options.txt +144 -115
- data/test/golden/queries.txt +13 -8
- data/test/golden/rule_1.txt +60 -39
- data/test/golden/rule_2.txt +60 -39
- data/test/golden/subcmd.txt +137 -131
- data/test/golden/subcmd_config.txt +162 -124
- data/test/golden/subcmd_rule.txt +366 -0
- data/test/test_como.rb +18 -9
- data/test/test_compatible +28 -28
- data/test/test_options +1 -0
- data/test/test_subcmd_rule +30 -0
- metadata +5 -2
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
= Version history
|
2
2
|
|
3
|
+
[0.1.2] ":check_invalid" applied correctly.
|
4
|
+
Header and footer configs has to include all newlines explicitly.
|
5
|
+
":error_exit" config removed (always exit with error).
|
6
|
+
Exclusive option type can have zero to many arguments.
|
7
|
+
Switch-options have no values only "given" should be checked.
|
8
|
+
Small changes in generated usage info display.
|
9
|
+
Errors are output to stderr (not stdout).
|
10
|
+
|
3
11
|
[0.1.1] Testcases use relative require to local dir. Rulecheck fixes:
|
4
12
|
incr and follow.
|
5
13
|
|
@@ -443,13 +443,13 @@
|
|
443
443
|
<pre class="lines">
|
444
444
|
|
445
445
|
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
446
|
+
1812
|
447
|
+
1813
|
448
|
+
1814
|
449
|
+
1815</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 1812</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
|
+
1848
|
510
|
+
1849
|
511
|
+
1850</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 1848</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
|
+
1833
|
551
|
+
1834
|
552
|
+
1835</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 1833</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
|
+
1854
|
592
|
+
1855
|
593
|
+
1856</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 1854</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
|
+
1859
|
633
|
+
1860
|
634
|
+
1861</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 1859</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
|
+
1838
|
674
|
+
1839
|
675
|
+
1840</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 1838</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
|
+
1823
|
715
|
+
1824
|
716
|
+
1825</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 1823</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
|
+
1828
|
756
|
+
1829
|
757
|
+
1830</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 1828</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
|
+
1843
|
797
|
+
1844
|
798
|
+
1845</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 1843</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
|
+
1818
|
838
|
+
1819
|
839
|
+
1820</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 1818</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
|
+
1864
|
879
|
+
1865
|
880
|
+
1866
|
881
|
+
1867
|
882
|
+
1868
|
883
|
+
1869
|
884
|
+
1870</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 1864</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 Wed Apr 23 19:33:21 2014 by
|
907
907
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
908
908
|
0.8.6.1 (ruby-1.9.3).
|
909
909
|
</div>
|
data/doc/Como/ComoCommon.html
CHANGED
@@ -235,12 +235,12 @@
|
|
235
235
|
<pre class="lines">
|
236
236
|
|
237
237
|
|
238
|
-
|
239
|
-
|
240
|
-
|
238
|
+
437
|
239
|
+
438
|
240
|
+
439</pre>
|
241
241
|
</td>
|
242
242
|
<td>
|
243
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
243
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 437</span>
|
244
244
|
|
245
245
|
<span class='kw'>def</span> <span class='const'>ComoCommon</span><span class='period'>.</span><span class='id identifier rubyid_getIo'>getIo</span>
|
246
246
|
<span class='cvar'>@@io</span>
|
@@ -276,12 +276,12 @@
|
|
276
276
|
<pre class="lines">
|
277
277
|
|
278
278
|
|
279
|
-
|
280
|
-
|
281
|
-
|
279
|
+
432
|
280
|
+
433
|
281
|
+
434</pre>
|
282
282
|
</td>
|
283
283
|
<td>
|
284
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
284
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 432</span>
|
285
285
|
|
286
286
|
<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>
|
287
287
|
<span class='cvar'>@@io</span> <span class='op'>=</span> <span class='id identifier rubyid_io'>io</span>
|
@@ -296,7 +296,7 @@
|
|
296
296
|
</div>
|
297
297
|
|
298
298
|
<div id="footer">
|
299
|
-
Generated on
|
299
|
+
Generated on Wed Apr 23 19:33:20 2014 by
|
300
300
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
301
301
|
0.8.6.1 (ruby-1.9.3).
|
302
302
|
</div>
|
data/doc/Como/MainOpt.html
CHANGED
@@ -213,7 +213,7 @@
|
|
213
213
|
|
214
214
|
|
215
215
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Opt.html" title="Como::Opt (class)">Opt</a></span></h3>
|
216
|
-
<p class="inherited"><span class='object_link'><a href="Opt.html#config-instance_method" title="Como::Opt#config (method)">#config</a></span>, <span class='object_link'><a href="Opt.html#doc-instance_method" title="Como::Opt#doc (method)">#doc</a></span>, <span class='object_link'><a href="Opt.html#given-instance_method" title="Como::Opt#given (method)">#given</a></span>, <span class='object_link'><a href="Opt.html#longOpt-instance_method" title="Como::Opt#longOpt (method)">#longOpt</a></span>, <span class='object_link'><a href="Opt.html#name-instance_method" title="Como::Opt#name (method)">#name</a></span>, <span class='object_link'><a href="Opt.html#
|
216
|
+
<p class="inherited"><span class='object_link'><a href="Opt.html#config-instance_method" title="Como::Opt#config (method)">#config</a></span>, <span class='object_link'><a href="Opt.html#doc-instance_method" title="Como::Opt#doc (method)">#doc</a></span>, <span class='object_link'><a href="Opt.html#given-instance_method" title="Como::Opt#given (method)">#given</a></span>, <span class='object_link'><a href="Opt.html#longOpt-instance_method" title="Como::Opt#longOpt (method)">#longOpt</a></span>, <span class='object_link'><a href="Opt.html#name-instance_method" title="Como::Opt#name (method)">#name</a></span>, <span class='object_link'><a href="Opt.html#parent-instance_method" title="Como::Opt#parent (method)">#parent</a></span>, <span class='object_link'><a href="Opt.html#rules-instance_method" title="Como::Opt#rules (method)">#rules</a></span>, <span class='object_link'><a href="Opt.html#shortOpt-instance_method" title="Como::Opt#shortOpt (method)">#shortOpt</a></span>, <span class='object_link'><a href="Opt.html#subcmd-instance_method" title="Como::Opt#subcmd (method)">#subcmd</a></span>, <span class='object_link'><a href="Opt.html#subopt-instance_method" title="Como::Opt#subopt (method)">#subopt</a></span>, <span class='object_link'><a href="Opt.html#type-instance_method" title="Como::Opt#type (method)">#type</a></span>, <span class='object_link'><a href="Opt.html#value-instance_method" title="Como::Opt#value (method)">#value</a></span></p>
|
217
217
|
|
218
218
|
|
219
219
|
|
@@ -291,6 +291,30 @@
|
|
291
291
|
|
292
292
|
|
293
293
|
|
294
|
+
<span class="summary_desc"><div class='inline'>
|
295
|
+
<p>Usage printout for command.</p>
|
296
|
+
</div></span>
|
297
|
+
|
298
|
+
</li>
|
299
|
+
|
300
|
+
|
301
|
+
<li class="public ">
|
302
|
+
<span class="summary_signature">
|
303
|
+
|
304
|
+
<a href="#usageCommandOld-instance_method" title="#usageCommandOld (instance method)">- (Object) <strong>usageCommandOld</strong> </a>
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
</span>
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
294
318
|
<span class="summary_desc"><div class='inline'>
|
295
319
|
<p>Usage printout for command.</p>
|
296
320
|
</div></span>
|
@@ -311,7 +335,7 @@
|
|
311
335
|
|
312
336
|
|
313
337
|
<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-
|
338
|
+
<p class="inherited"><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#%5B%5D-class_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#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#configOverlay-class_method" title="Como::Opt.configOverlay (method)">configOverlay</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-instance_method" title="Como::Opt#default (method)">#default</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#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-instance_method" title="Como::Opt#each_given (method)">#each_given</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#error-instance_method" title="Como::Opt#error (method)">#error</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#findOpt-instance_method" title="Como::Opt#findOpt (method)">#findOpt</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#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#hasArg-instance_method" title="Como::Opt#hasArg (method)">#hasArg</a></span>, <span class='object_link'><a href="Opt.html#hasMany-instance_method" title="Como::Opt#hasMany (method)">#hasMany</a></span>, <span class='object_link'><a href="Opt.html#isExclusive-instance_method" title="Como::Opt#isExclusive (method)">#isExclusive</a></span>, <span class='object_link'><a href="Opt.html#isRequired-instance_method" title="Como::Opt#isRequired (method)">#isRequired</a></span>, <span class='object_link'><a href="Opt.html#isSwitch-instance_method" title="Como::Opt#isSwitch (method)">#isSwitch</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#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#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#setSubopt-instance_method" title="Como::Opt#setSubopt (method)">#setSubopt</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#silent%3F-instance_method" title="Como::Opt#silent? (method)">#silent?</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#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#usageNormalOld-instance_method" title="Como::Opt#usageNormalOld (method)">#usageNormalOld</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
339
|
|
316
340
|
|
317
341
|
|
@@ -352,17 +376,17 @@
|
|
352
376
|
<pre class="lines">
|
353
377
|
|
354
378
|
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
379
|
+
1758
|
380
|
+
1759
|
381
|
+
1760
|
382
|
+
1761
|
383
|
+
1762
|
384
|
+
1763
|
385
|
+
1764
|
386
|
+
1765</pre>
|
363
387
|
</td>
|
364
388
|
<td>
|
365
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
389
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1758</span>
|
366
390
|
|
367
391
|
<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>
|
368
392
|
<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>
|
@@ -410,12 +434,12 @@
|
|
410
434
|
<pre class="lines">
|
411
435
|
|
412
436
|
|
413
|
-
|
414
|
-
|
415
|
-
|
437
|
+
1755
|
438
|
+
1756
|
439
|
+
1757</pre>
|
416
440
|
</td>
|
417
441
|
<td>
|
418
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
442
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1755</span>
|
419
443
|
|
420
444
|
<span class='kw'>def</span> <span class='id identifier rubyid_author'>author</span>
|
421
445
|
<span class='ivar'>@author</span>
|
@@ -453,12 +477,12 @@
|
|
453
477
|
<pre class="lines">
|
454
478
|
|
455
479
|
|
456
|
-
|
457
|
-
|
458
|
-
|
480
|
+
1752
|
481
|
+
1753
|
482
|
+
1754</pre>
|
459
483
|
</td>
|
460
484
|
<td>
|
461
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
485
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1752</span>
|
462
486
|
|
463
487
|
<span class='kw'>def</span> <span class='id identifier rubyid_external'>external</span>
|
464
488
|
<span class='ivar'>@external</span>
|
@@ -496,12 +520,12 @@
|
|
496
520
|
<pre class="lines">
|
497
521
|
|
498
522
|
|
499
|
-
|
500
|
-
|
501
|
-
|
523
|
+
1755
|
524
|
+
1756
|
525
|
+
1757</pre>
|
502
526
|
</td>
|
503
527
|
<td>
|
504
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
528
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1755</span>
|
505
529
|
|
506
530
|
<span class='kw'>def</span> <span class='id identifier rubyid_year'>year</span>
|
507
531
|
<span class='ivar'>@year</span>
|
@@ -544,12 +568,12 @@
|
|
544
568
|
<pre class="lines">
|
545
569
|
|
546
570
|
|
547
|
-
|
548
|
-
|
549
|
-
|
571
|
+
1769
|
572
|
+
1770
|
573
|
+
1771</pre>
|
550
574
|
</td>
|
551
575
|
<td>
|
552
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
576
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1769</span>
|
553
577
|
|
554
578
|
<span class='kw'>def</span> <span class='id identifier rubyid_fullCommand'>fullCommand</span>
|
555
579
|
<span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_progname'>progname</span>
|
@@ -585,25 +609,84 @@
|
|
585
609
|
<pre class="lines">
|
586
610
|
|
587
611
|
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
1768
|
601
|
-
1769</pre>
|
612
|
+
1791
|
613
|
+
1792
|
614
|
+
1793
|
615
|
+
1794
|
616
|
+
1795
|
617
|
+
1796
|
618
|
+
1797
|
619
|
+
1798
|
620
|
+
1799
|
621
|
+
1800
|
622
|
+
1801
|
623
|
+
1802</pre>
|
602
624
|
</td>
|
603
625
|
<td>
|
604
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
626
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1791</span>
|
605
627
|
|
606
628
|
<span class='kw'>def</span> <span class='id identifier rubyid_usageCommand'>usageCommand</span>
|
629
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\
|
630
|
+
</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_fullCommand'>fullCommand</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cmdline'>cmdline</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</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><span class='rbrace'>}</span><span class='tstring_content'>
|
631
|
+
|
632
|
+
</span><span class='tstring_end'>"</span></span>
|
633
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>+=</span> <span class='id identifier rubyid_suboptDoc'>suboptDoc</span>
|
634
|
+
|
635
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>
|
636
|
+
|
637
|
+
Copyright (c) </span><span class='embexpr_beg'>#{</span><span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span><span class='rbrace'>}</span><span class='tstring_content'> by </span><span class='embexpr_beg'>#{</span><span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_author'>author</span><span class='rbrace'>}</span><span class='tstring_content'>
|
638
|
+
</span><span class='tstring_end'>"</span></span>
|
639
|
+
<span class='kw'>end</span></pre>
|
640
|
+
</td>
|
641
|
+
</tr>
|
642
|
+
</table>
|
643
|
+
</div>
|
644
|
+
|
645
|
+
<div class="method_details ">
|
646
|
+
<h3 class="signature " id="usageCommandOld-instance_method">
|
647
|
+
|
648
|
+
- (<tt>Object</tt>) <strong>usageCommandOld</strong>
|
649
|
+
|
650
|
+
|
651
|
+
|
652
|
+
|
653
|
+
|
654
|
+
</h3><div class="docstring">
|
655
|
+
<div class="discussion">
|
656
|
+
|
657
|
+
<p>Usage printout for command.</p>
|
658
|
+
|
659
|
+
|
660
|
+
</div>
|
661
|
+
</div>
|
662
|
+
<div class="tags">
|
663
|
+
|
664
|
+
|
665
|
+
</div><table class="source_code">
|
666
|
+
<tr>
|
667
|
+
<td>
|
668
|
+
<pre class="lines">
|
669
|
+
|
670
|
+
|
671
|
+
1775
|
672
|
+
1776
|
673
|
+
1777
|
674
|
+
1778
|
675
|
+
1779
|
676
|
+
1780
|
677
|
+
1781
|
678
|
+
1782
|
679
|
+
1783
|
680
|
+
1784
|
681
|
+
1785
|
682
|
+
1786
|
683
|
+
1787
|
684
|
+
1788</pre>
|
685
|
+
</td>
|
686
|
+
<td>
|
687
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1775</span>
|
688
|
+
|
689
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_usageCommandOld'>usageCommandOld</span>
|
607
690
|
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>
|
608
691
|
Usage:
|
609
692
|
</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_fullCommand'>fullCommand</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cmdline'>cmdline</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</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><span class='rbrace'>}</span><span class='tstring_content'>
|
@@ -627,7 +710,7 @@
|
|
627
710
|
</div>
|
628
711
|
|
629
712
|
<div id="footer">
|
630
|
-
Generated on
|
713
|
+
Generated on Wed Apr 23 19:33:21 2014 by
|
631
714
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
632
715
|
0.8.6.1 (ruby-1.9.3).
|
633
716
|
</div>
|
@@ -224,13 +224,13 @@
|
|
224
224
|
<pre class="lines">
|
225
225
|
|
226
226
|
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
227
|
+
694
|
228
|
+
695
|
229
|
+
696
|
230
|
+
697</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 694</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
|
+
693
|
278
|
+
694
|
279
|
+
695</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 693</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 Wed Apr 23 19:33:21 2014 by
|
299
299
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
300
|
0.8.6.1 (ruby-1.9.3).
|
301
301
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Wed Apr 23 19:33:21 2014 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.8.6.1 (ruby-1.9.3).
|
155
155
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Wed Apr 23 19:33:21 2014 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.8.6.1 (ruby-1.9.3).
|
155
155
|
</div>
|