como 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.rdoc +3 -0
- data/doc/Como.html +142 -105
- data/doc/Como/ArgsParseState.html +116 -115
- data/doc/Como/ComoCommon.html +78 -73
- data/doc/Como/MainOpt.html +105 -104
- data/doc/Como/Opt.html +900 -878
- data/doc/Como/Opt/ErrorWithData.html +59 -58
- data/doc/Como/Opt/InvalidOption.html +44 -43
- data/doc/Como/Opt/MissingArgument.html +44 -43
- data/doc/Como/RuleCheck.html +155 -154
- data/doc/Como/RuleDisplay.html +158 -156
- data/doc/Como/Spec.html +328 -319
- data/doc/_index.html +28 -31
- data/doc/class_list.html +24 -31
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +250 -93
- data/doc/file.CHANGELOG.html +37 -33
- data/doc/file.README.html +28 -31
- data/doc/file_list.html +29 -31
- data/doc/frames.html +7 -16
- data/doc/index.html +28 -31
- data/doc/js/app.js +147 -74
- data/doc/js/full_list.js +170 -135
- data/doc/method_list.html +768 -476
- data/doc/top-level-namespace.html +34 -36
- data/lib/como.rb +46 -19
- data/lib/version.rb +1 -1
- data/test/como_options +1 -0
- data/test/como_type_prim +2 -2
- data/test/golden/options.txt +71 -11
- data/test/test_como.rb +2 -2
- data/test/test_options +3 -0
- metadata +3 -4
data/doc/Como/Opt.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: Como::Opt
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.16
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Como::Opt";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Como/Opt.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (O)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../Como.html" title="Como (module)">Como</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Opt</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
65
61
|
|
66
|
-
|
62
|
+
<div id="content"><h1>Class: Como::Opt
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName"><span class='object_link'><a href="ComoCommon.html" title="Como::ComoCommon (class)">ComoCommon</a></span></span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -85,21 +81,25 @@
|
|
85
81
|
</ul>
|
86
82
|
<a href="#" class="inheritanceTree">show all</a>
|
87
83
|
|
88
|
-
|
89
|
-
|
84
|
+
</dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
90
88
|
|
91
89
|
|
92
|
-
|
93
90
|
|
94
|
-
|
95
91
|
|
96
92
|
|
93
|
+
|
94
|
+
|
95
|
+
|
97
96
|
|
98
|
-
|
99
|
-
<
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/como.rb</dd>
|
100
|
+
</dl>
|
100
101
|
|
101
|
-
</
|
102
|
-
<div class="clear"></div>
|
102
|
+
</div>
|
103
103
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
@@ -130,8 +130,12 @@ option status (Opt instance) can be queried with for example “given” and
|
|
130
130
|
|
131
131
|
</p>
|
132
132
|
|
133
|
-
<h2>Constant Summary</h2>
|
134
133
|
|
134
|
+
<h2>
|
135
|
+
Constant Summary
|
136
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
137
|
+
</h2>
|
138
|
+
|
135
139
|
<dl class="constants">
|
136
140
|
|
137
141
|
<dt id="main-classvariable" class="">@@main =
|
@@ -215,13 +219,13 @@ option status (Opt instance) can be queried with for example “given” and
|
|
215
219
|
|
216
220
|
|
217
221
|
|
218
|
-
<h2>Instance Attribute Summary <small
|
222
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
219
223
|
<ul class="summary">
|
220
224
|
|
221
225
|
<li class="public ">
|
222
226
|
<span class="summary_signature">
|
223
227
|
|
224
|
-
<a href="#config-instance_method" title="#config (instance method)"
|
228
|
+
<a href="#config-instance_method" title="#config (instance method)">#<strong>config</strong> ⇒ Object </a>
|
225
229
|
|
226
230
|
|
227
231
|
|
@@ -250,7 +254,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
250
254
|
<li class="public ">
|
251
255
|
<span class="summary_signature">
|
252
256
|
|
253
|
-
<a href="#doc-instance_method" title="#doc (instance method)"
|
257
|
+
<a href="#doc-instance_method" title="#doc (instance method)">#<strong>doc</strong> ⇒ Object </a>
|
254
258
|
|
255
259
|
|
256
260
|
|
@@ -277,7 +281,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
277
281
|
<li class="public ">
|
278
282
|
<span class="summary_signature">
|
279
283
|
|
280
|
-
<a href="#given-instance_method" title="#given (instance method)"
|
284
|
+
<a href="#given-instance_method" title="#given (instance method)">#<strong>given</strong>(optArg = false, &prog) ⇒ Object </a>
|
281
285
|
|
282
286
|
|
283
287
|
|
@@ -306,7 +310,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
306
310
|
<li class="public ">
|
307
311
|
<span class="summary_signature">
|
308
312
|
|
309
|
-
<a href="#longOpt-instance_method" title="#longOpt (instance method)"
|
313
|
+
<a href="#longOpt-instance_method" title="#longOpt (instance method)">#<strong>longOpt</strong> ⇒ Object </a>
|
310
314
|
|
311
315
|
|
312
316
|
|
@@ -333,7 +337,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
333
337
|
<li class="public ">
|
334
338
|
<span class="summary_signature">
|
335
339
|
|
336
|
-
<a href="#name-instance_method" title="#name (instance method)"
|
340
|
+
<a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> ⇒ Object </a>
|
337
341
|
|
338
342
|
|
339
343
|
|
@@ -360,7 +364,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
360
364
|
<li class="public ">
|
361
365
|
<span class="summary_signature">
|
362
366
|
|
363
|
-
<a href="#parent-instance_method" title="#parent (instance method)"
|
367
|
+
<a href="#parent-instance_method" title="#parent (instance method)">#<strong>parent</strong> ⇒ Object </a>
|
364
368
|
|
365
369
|
|
366
370
|
|
@@ -387,7 +391,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
387
391
|
<li class="public ">
|
388
392
|
<span class="summary_signature">
|
389
393
|
|
390
|
-
<a href="#rules-instance_method" title="#rules (instance method)"
|
394
|
+
<a href="#rules-instance_method" title="#rules (instance method)">#<strong>rules</strong> ⇒ Object </a>
|
391
395
|
|
392
396
|
|
393
397
|
|
@@ -416,7 +420,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
416
420
|
<li class="public ">
|
417
421
|
<span class="summary_signature">
|
418
422
|
|
419
|
-
<a href="#shortOpt-instance_method" title="#shortOpt (instance method)"
|
423
|
+
<a href="#shortOpt-instance_method" title="#shortOpt (instance method)">#<strong>shortOpt</strong> ⇒ Object </a>
|
420
424
|
|
421
425
|
|
422
426
|
|
@@ -443,7 +447,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
443
447
|
<li class="public ">
|
444
448
|
<span class="summary_signature">
|
445
449
|
|
446
|
-
<a href="#subcmd-instance_method" title="#subcmd (instance method)"
|
450
|
+
<a href="#subcmd-instance_method" title="#subcmd (instance method)">#<strong>subcmd</strong> ⇒ Object </a>
|
447
451
|
|
448
452
|
|
449
453
|
|
@@ -472,7 +476,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
472
476
|
<li class="public ">
|
473
477
|
<span class="summary_signature">
|
474
478
|
|
475
|
-
<a href="#subopt-instance_method" title="#subopt (instance method)"
|
479
|
+
<a href="#subopt-instance_method" title="#subopt (instance method)">#<strong>subopt</strong> ⇒ Object </a>
|
476
480
|
|
477
481
|
|
478
482
|
|
@@ -501,7 +505,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
501
505
|
<li class="public ">
|
502
506
|
<span class="summary_signature">
|
503
507
|
|
504
|
-
<a href="#type-instance_method" title="#type (instance method)"
|
508
|
+
<a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> ⇒ Object </a>
|
505
509
|
|
506
510
|
|
507
511
|
|
@@ -528,7 +532,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
528
532
|
<li class="public ">
|
529
533
|
<span class="summary_signature">
|
530
534
|
|
531
|
-
<a href="#value-instance_method" title="#value (instance method)"
|
535
|
+
<a href="#value-instance_method" title="#value (instance method)">#<strong>value</strong> ⇒ Object </a>
|
532
536
|
|
533
537
|
|
534
538
|
|
@@ -560,7 +564,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
560
564
|
|
561
565
|
<h2>
|
562
566
|
Class Method Summary
|
563
|
-
<small
|
567
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
564
568
|
</h2>
|
565
569
|
|
566
570
|
<ul class="summary">
|
@@ -568,7 +572,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
568
572
|
<li class="public ">
|
569
573
|
<span class="summary_signature">
|
570
574
|
|
571
|
-
<a href="
|
575
|
+
<a href="#[]-class_method" title="[] (class method)">.<strong>[]</strong>(str) ⇒ Object </a>
|
572
576
|
|
573
577
|
|
574
578
|
|
@@ -592,7 +596,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
592
596
|
<li class="public ">
|
593
597
|
<span class="summary_signature">
|
594
598
|
|
595
|
-
<a href="#addOpt-class_method" title="addOpt (class method)"
|
599
|
+
<a href="#addOpt-class_method" title="addOpt (class method)">.<strong>addOpt</strong>(opt) ⇒ Object </a>
|
596
600
|
|
597
601
|
|
598
602
|
|
@@ -616,7 +620,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
616
620
|
<li class="public ">
|
617
621
|
<span class="summary_signature">
|
618
622
|
|
619
|
-
<a href="#author-class_method" title="author (class method)"
|
623
|
+
<a href="#author-class_method" title="author (class method)">.<strong>author</strong> ⇒ Object </a>
|
620
624
|
|
621
625
|
|
622
626
|
|
@@ -640,7 +644,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
640
644
|
<li class="public ">
|
641
645
|
<span class="summary_signature">
|
642
646
|
|
643
|
-
<a href="#configGet-class_method" title="configGet (class method)"
|
647
|
+
<a href="#configGet-class_method" title="configGet (class method)">.<strong>configGet</strong> ⇒ Object </a>
|
644
648
|
|
645
649
|
|
646
650
|
|
@@ -664,7 +668,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
664
668
|
<li class="public ">
|
665
669
|
<span class="summary_signature">
|
666
670
|
|
667
|
-
<a href="#configOverlay-class_method" title="configOverlay (class method)"
|
671
|
+
<a href="#configOverlay-class_method" title="configOverlay (class method)">.<strong>configOverlay</strong>(config) ⇒ Object </a>
|
668
672
|
|
669
673
|
|
670
674
|
|
@@ -688,7 +692,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
688
692
|
<li class="public ">
|
689
693
|
<span class="summary_signature">
|
690
694
|
|
691
|
-
<a href="#configSet-class_method" title="configSet (class method)"
|
695
|
+
<a href="#configSet-class_method" title="configSet (class method)">.<strong>configSet</strong>(config) ⇒ Object </a>
|
692
696
|
|
693
697
|
|
694
698
|
|
@@ -712,7 +716,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
712
716
|
<li class="public ">
|
713
717
|
<span class="summary_signature">
|
714
718
|
|
715
|
-
<a href="#current-class_method" title="current (class method)"
|
719
|
+
<a href="#current-class_method" title="current (class method)">.<strong>current</strong> ⇒ Object </a>
|
716
720
|
|
717
721
|
|
718
722
|
|
@@ -736,7 +740,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
736
740
|
<li class="public ">
|
737
741
|
<span class="summary_signature">
|
738
742
|
|
739
|
-
<a href="#default-class_method" title="default (class method)"
|
743
|
+
<a href="#default-class_method" title="default (class method)">.<strong>default</strong> ⇒ Object </a>
|
740
744
|
|
741
745
|
|
742
746
|
|
@@ -760,7 +764,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
760
764
|
<li class="public ">
|
761
765
|
<span class="summary_signature">
|
762
766
|
|
763
|
-
<a href="#defaultOpt-class_method" title="defaultOpt (class method)"
|
767
|
+
<a href="#defaultOpt-class_method" title="defaultOpt (class method)">.<strong>defaultOpt</strong>(doc = "No doc.") ⇒ Object </a>
|
764
768
|
|
765
769
|
|
766
770
|
|
@@ -784,7 +788,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
784
788
|
<li class="public ">
|
785
789
|
<span class="summary_signature">
|
786
790
|
|
787
|
-
<a href="#each-class_method" title="each (class method)"
|
791
|
+
<a href="#each-class_method" title="each (class method)">.<strong>each</strong>(&blk) ⇒ Object </a>
|
788
792
|
|
789
793
|
|
790
794
|
|
@@ -808,7 +812,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
808
812
|
<li class="public ">
|
809
813
|
<span class="summary_signature">
|
810
814
|
|
811
|
-
<a href="#each_given-class_method" title="each_given (class method)"
|
815
|
+
<a href="#each_given-class_method" title="each_given (class method)">.<strong>each_given</strong>(&blk) ⇒ Object </a>
|
812
816
|
|
813
817
|
|
814
818
|
|
@@ -832,7 +836,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
832
836
|
<li class="public ">
|
833
837
|
<span class="summary_signature">
|
834
838
|
|
835
|
-
<a href="#error-class_method" title="error (class method)"
|
839
|
+
<a href="#error-class_method" title="error (class method)">.<strong>error</strong>(str, nl = false) ⇒ Object </a>
|
836
840
|
|
837
841
|
|
838
842
|
|
@@ -856,7 +860,7 @@ option status (Opt instance) can be queried with for example “given” and
|
|
856
860
|
<li class="public ">
|
857
861
|
<span class="summary_signature">
|
858
862
|
|
859
|
-
<a href="#external-class_method" title="external (class method)"
|
863
|
+
<a href="#external-class_method" title="external (class method)">.<strong>external</strong> ⇒ Object </a>
|
860
864
|
|
861
865
|
|
862
866
|
|
@@ -881,7 +885,7 @@ after '–').</p>
|
|
881
885
|
<li class="public ">
|
882
886
|
<span class="summary_signature">
|
883
887
|
|
884
|
-
<a href="#fatal-class_method" title="fatal (class method)"
|
888
|
+
<a href="#fatal-class_method" title="fatal (class method)">.<strong>fatal</strong>(str) ⇒ Object </a>
|
885
889
|
|
886
890
|
|
887
891
|
|
@@ -905,7 +909,7 @@ after '–').</p>
|
|
905
909
|
<li class="public ">
|
906
910
|
<span class="summary_signature">
|
907
911
|
|
908
|
-
<a href="#findOpt-class_method" title="findOpt (class method)"
|
912
|
+
<a href="#findOpt-class_method" title="findOpt (class method)">.<strong>findOpt</strong>(name) ⇒ Object </a>
|
909
913
|
|
910
914
|
|
911
915
|
|
@@ -929,7 +933,7 @@ after '–').</p>
|
|
929
933
|
<li class="public ">
|
930
934
|
<span class="summary_signature">
|
931
935
|
|
932
|
-
<a href="#full-class_method" title="full (class method)"
|
936
|
+
<a href="#full-class_method" title="full (class method)">.<strong>full</strong>(name, opt, type, doc = "No doc.") ⇒ Object </a>
|
933
937
|
|
934
938
|
|
935
939
|
|
@@ -953,7 +957,7 @@ after '–').</p>
|
|
953
957
|
<li class="public ">
|
954
958
|
<span class="summary_signature">
|
955
959
|
|
956
|
-
<a href="#main-class_method" title="main (class method)"
|
960
|
+
<a href="#main-class_method" title="main (class method)">.<strong>main</strong> ⇒ Object </a>
|
957
961
|
|
958
962
|
|
959
963
|
|
@@ -977,7 +981,7 @@ after '–').</p>
|
|
977
981
|
<li class="public ">
|
978
982
|
<span class="summary_signature">
|
979
983
|
|
980
|
-
<a href="#progname-class_method" title="progname (class method)"
|
984
|
+
<a href="#progname-class_method" title="progname (class method)">.<strong>progname</strong> ⇒ Object </a>
|
981
985
|
|
982
986
|
|
983
987
|
|
@@ -1001,7 +1005,7 @@ after '–').</p>
|
|
1001
1005
|
<li class="public ">
|
1002
1006
|
<span class="summary_signature">
|
1003
1007
|
|
1004
|
-
<a href="#reset-class_method" title="reset (class method)"
|
1008
|
+
<a href="#reset-class_method" title="reset (class method)">.<strong>reset</strong> ⇒ Object </a>
|
1005
1009
|
|
1006
1010
|
|
1007
1011
|
|
@@ -1025,7 +1029,7 @@ after '–').</p>
|
|
1025
1029
|
<li class="public ">
|
1026
1030
|
<span class="summary_signature">
|
1027
1031
|
|
1028
|
-
<a href="#setMain-class_method" title="setMain (class method)"
|
1032
|
+
<a href="#setMain-class_method" title="setMain (class method)">.<strong>setMain</strong>(main) ⇒ Object </a>
|
1029
1033
|
|
1030
1034
|
|
1031
1035
|
|
@@ -1049,7 +1053,7 @@ after '–').</p>
|
|
1049
1053
|
<li class="public ">
|
1050
1054
|
<span class="summary_signature">
|
1051
1055
|
|
1052
|
-
<a href="#setSubcmd-class_method" title="setSubcmd (class method)"
|
1056
|
+
<a href="#setSubcmd-class_method" title="setSubcmd (class method)">.<strong>setSubcmd</strong>(opt) ⇒ Object </a>
|
1053
1057
|
|
1054
1058
|
|
1055
1059
|
|
@@ -1073,7 +1077,7 @@ after '–').</p>
|
|
1073
1077
|
<li class="public ">
|
1074
1078
|
<span class="summary_signature">
|
1075
1079
|
|
1076
|
-
<a href="#subcmd-class_method" title="subcmd (class method)"
|
1080
|
+
<a href="#subcmd-class_method" title="subcmd (class method)">.<strong>subcmd</strong>(name, doc = "No doc.") ⇒ Object </a>
|
1077
1081
|
|
1078
1082
|
|
1079
1083
|
|
@@ -1097,7 +1101,7 @@ after '–').</p>
|
|
1097
1101
|
<li class="public ">
|
1098
1102
|
<span class="summary_signature">
|
1099
1103
|
|
1100
|
-
<a href="#warn-class_method" title="warn (class method)"
|
1104
|
+
<a href="#warn-class_method" title="warn (class method)">.<strong>warn</strong>(str, nl = false) ⇒ Object </a>
|
1101
1105
|
|
1102
1106
|
|
1103
1107
|
|
@@ -1121,7 +1125,7 @@ after '–').</p>
|
|
1121
1125
|
<li class="public ">
|
1122
1126
|
<span class="summary_signature">
|
1123
1127
|
|
1124
|
-
<a href="#year-class_method" title="year (class method)"
|
1128
|
+
<a href="#year-class_method" title="year (class method)">.<strong>year</strong> ⇒ Object </a>
|
1125
1129
|
|
1126
1130
|
|
1127
1131
|
|
@@ -1146,7 +1150,7 @@ after '–').</p>
|
|
1146
1150
|
|
1147
1151
|
<h2>
|
1148
1152
|
Instance Method Summary
|
1149
|
-
<small
|
1153
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
1150
1154
|
</h2>
|
1151
1155
|
|
1152
1156
|
<ul class="summary">
|
@@ -1154,7 +1158,7 @@ after '–').</p>
|
|
1154
1158
|
<li class="public ">
|
1155
1159
|
<span class="summary_signature">
|
1156
1160
|
|
1157
|
-
<a href="
|
1161
|
+
<a href="#[]-instance_method" title="#[] (instance method)">#<strong>[]</strong>(str) ⇒ Object </a>
|
1158
1162
|
|
1159
1163
|
|
1160
1164
|
|
@@ -1178,7 +1182,7 @@ after '–').</p>
|
|
1178
1182
|
<li class="public ">
|
1179
1183
|
<span class="summary_signature">
|
1180
1184
|
|
1181
|
-
<a href="#addOption-instance_method" title="#addOption (instance method)"
|
1185
|
+
<a href="#addOption-instance_method" title="#addOption (instance method)">#<strong>addOption</strong>(opt) ⇒ Object </a>
|
1182
1186
|
|
1183
1187
|
|
1184
1188
|
|
@@ -1202,7 +1206,7 @@ after '–').</p>
|
|
1202
1206
|
<li class="public ">
|
1203
1207
|
<span class="summary_signature">
|
1204
1208
|
|
1205
|
-
<a href="#addSubcmd-instance_method" title="#addSubcmd (instance method)"
|
1209
|
+
<a href="#addSubcmd-instance_method" title="#addSubcmd (instance method)">#<strong>addSubcmd</strong>(cmd) ⇒ Object </a>
|
1206
1210
|
|
1207
1211
|
|
1208
1212
|
|
@@ -1226,7 +1230,7 @@ after '–').</p>
|
|
1226
1230
|
<li class="public ">
|
1227
1231
|
<span class="summary_signature">
|
1228
1232
|
|
1229
|
-
<a href="#apply-instance_method" title="#apply (instance method)"
|
1233
|
+
<a href="#apply-instance_method" title="#apply (instance method)">#<strong>apply</strong>(default = nil) ⇒ Object </a>
|
1230
1234
|
|
1231
1235
|
|
1232
1236
|
|
@@ -1250,7 +1254,7 @@ after '–').</p>
|
|
1250
1254
|
<li class="public ">
|
1251
1255
|
<span class="summary_signature">
|
1252
1256
|
|
1253
|
-
<a href="#applyConfig-instance_method" title="#applyConfig (instance method)"
|
1257
|
+
<a href="#applyConfig-instance_method" title="#applyConfig (instance method)">#<strong>applyConfig</strong>(config) ⇒ Object </a>
|
1254
1258
|
|
1255
1259
|
|
1256
1260
|
|
@@ -1274,7 +1278,7 @@ after '–').</p>
|
|
1274
1278
|
<li class="public ">
|
1275
1279
|
<span class="summary_signature">
|
1276
1280
|
|
1277
|
-
<a href="#argById-instance_method" title="#argById (instance method)"
|
1281
|
+
<a href="#argById-instance_method" title="#argById (instance method)">#<strong>argById</strong>(str) ⇒ Object </a>
|
1278
1282
|
|
1279
1283
|
|
1280
1284
|
|
@@ -1298,7 +1302,7 @@ after '–').</p>
|
|
1298
1302
|
<li class="public ">
|
1299
1303
|
<span class="summary_signature">
|
1300
1304
|
|
1301
|
-
<a href="#argByName-instance_method" title="#argByName (instance method)"
|
1305
|
+
<a href="#argByName-instance_method" title="#argByName (instance method)">#<strong>argByName</strong>(str) ⇒ Object </a>
|
1302
1306
|
|
1303
1307
|
|
1304
1308
|
|
@@ -1322,7 +1326,7 @@ after '–').</p>
|
|
1322
1326
|
<li class="public ">
|
1323
1327
|
<span class="summary_signature">
|
1324
1328
|
|
1325
|
-
<a href="#check-instance_method" title="#check (instance method)"
|
1329
|
+
<a href="#check-instance_method" title="#check (instance method)">#<strong>check</strong>(argsState) ⇒ Object </a>
|
1326
1330
|
|
1327
1331
|
|
1328
1332
|
|
@@ -1346,7 +1350,7 @@ after '–').</p>
|
|
1346
1350
|
<li class="public ">
|
1347
1351
|
<span class="summary_signature">
|
1348
1352
|
|
1349
|
-
<a href="#checkAlso-instance_method" title="#checkAlso (instance method)"
|
1353
|
+
<a href="#checkAlso-instance_method" title="#checkAlso (instance method)">#<strong>checkAlso</strong>(opt, error, &check) ⇒ Object </a>
|
1350
1354
|
|
1351
1355
|
|
1352
1356
|
|
@@ -1370,7 +1374,7 @@ after '–').</p>
|
|
1370
1374
|
<li class="public ">
|
1371
1375
|
<span class="summary_signature">
|
1372
1376
|
|
1373
|
-
<a href="#checkMissing-instance_method" title="#checkMissing (instance method)"
|
1377
|
+
<a href="#checkMissing-instance_method" title="#checkMissing (instance method)">#<strong>checkMissing</strong> ⇒ Object </a>
|
1374
1378
|
|
1375
1379
|
|
1376
1380
|
|
@@ -1395,7 +1399,7 @@ subcommands.</p>
|
|
1395
1399
|
<li class="public ">
|
1396
1400
|
<span class="summary_signature">
|
1397
1401
|
|
1398
|
-
<a href="#checkRule-instance_method" title="#checkRule (instance method)"
|
1402
|
+
<a href="#checkRule-instance_method" title="#checkRule (instance method)">#<strong>checkRule</strong> ⇒ Object </a>
|
1399
1403
|
|
1400
1404
|
|
1401
1405
|
|
@@ -1419,7 +1423,7 @@ subcommands.</p>
|
|
1419
1423
|
<li class="public ">
|
1420
1424
|
<span class="summary_signature">
|
1421
1425
|
|
1422
|
-
<a href="#cmdline-instance_method" title="#cmdline (instance method)"
|
1426
|
+
<a href="#cmdline-instance_method" title="#cmdline (instance method)">#<strong>cmdline</strong> ⇒ Object </a>
|
1423
1427
|
|
1424
1428
|
|
1425
1429
|
|
@@ -1443,7 +1447,7 @@ subcommands.</p>
|
|
1443
1447
|
<li class="public ">
|
1444
1448
|
<span class="summary_signature">
|
1445
1449
|
|
1446
|
-
<a href="#default-instance_method" title="#default (instance method)"
|
1450
|
+
<a href="#default-instance_method" title="#default (instance method)">#<strong>default</strong> ⇒ Object </a>
|
1447
1451
|
|
1448
1452
|
|
1449
1453
|
|
@@ -1467,7 +1471,7 @@ subcommands.</p>
|
|
1467
1471
|
<li class="public ">
|
1468
1472
|
<span class="summary_signature">
|
1469
1473
|
|
1470
|
-
<a href="#each-instance_method" title="#each (instance method)"
|
1474
|
+
<a href="#each-instance_method" title="#each (instance method)">#<strong>each</strong>(&blk) ⇒ Object </a>
|
1471
1475
|
|
1472
1476
|
|
1473
1477
|
|
@@ -1491,7 +1495,7 @@ subcommands.</p>
|
|
1491
1495
|
<li class="public ">
|
1492
1496
|
<span class="summary_signature">
|
1493
1497
|
|
1494
|
-
<a href="#each_given-instance_method" title="#each_given (instance method)"
|
1498
|
+
<a href="#each_given-instance_method" title="#each_given (instance method)">#<strong>each_given</strong>(&blk) ⇒ Object </a>
|
1495
1499
|
|
1496
1500
|
|
1497
1501
|
|
@@ -1515,7 +1519,7 @@ subcommands.</p>
|
|
1515
1519
|
<li class="public ">
|
1516
1520
|
<span class="summary_signature">
|
1517
1521
|
|
1518
|
-
<a href="#error-instance_method" title="#error (instance method)"
|
1522
|
+
<a href="#error-instance_method" title="#error (instance method)">#<strong>error</strong>(str, nl = false) ⇒ Object </a>
|
1519
1523
|
|
1520
1524
|
|
1521
1525
|
|
@@ -1539,7 +1543,7 @@ subcommands.</p>
|
|
1539
1543
|
<li class="public ">
|
1540
1544
|
<span class="summary_signature">
|
1541
1545
|
|
1542
|
-
<a href="#errornl-instance_method" title="#errornl (instance method)"
|
1546
|
+
<a href="#errornl-instance_method" title="#errornl (instance method)">#<strong>errornl</strong>(str) ⇒ Object </a>
|
1543
1547
|
|
1544
1548
|
|
1545
1549
|
|
@@ -1563,7 +1567,7 @@ subcommands.</p>
|
|
1563
1567
|
<li class="public ">
|
1564
1568
|
<span class="summary_signature">
|
1565
1569
|
|
1566
|
-
<a href="#evalCheck-instance_method" title="#evalCheck (instance method)"
|
1570
|
+
<a href="#evalCheck-instance_method" title="#evalCheck (instance method)">#<strong>evalCheck</strong>(&check) ⇒ Object </a>
|
1567
1571
|
|
1568
1572
|
|
1569
1573
|
|
@@ -1587,7 +1591,7 @@ subcommands.</p>
|
|
1587
1591
|
<li class="public ">
|
1588
1592
|
<span class="summary_signature">
|
1589
1593
|
|
1590
|
-
<a href="#fatal-instance_method" title="#fatal (instance method)"
|
1594
|
+
<a href="#fatal-instance_method" title="#fatal (instance method)">#<strong>fatal</strong>(str) ⇒ Object </a>
|
1591
1595
|
|
1592
1596
|
|
1593
1597
|
|
@@ -1611,7 +1615,7 @@ subcommands.</p>
|
|
1611
1615
|
<li class="public ">
|
1612
1616
|
<span class="summary_signature">
|
1613
1617
|
|
1614
|
-
<a href="#findOpt-instance_method" title="#findOpt (instance method)"
|
1618
|
+
<a href="#findOpt-instance_method" title="#findOpt (instance method)">#<strong>findOpt</strong>(str) ⇒ Object </a>
|
1615
1619
|
|
1616
1620
|
|
1617
1621
|
|
@@ -1635,7 +1639,7 @@ subcommands.</p>
|
|
1635
1639
|
<li class="public ">
|
1636
1640
|
<span class="summary_signature">
|
1637
1641
|
|
1638
|
-
<a href="#givenCount-instance_method" title="#givenCount (instance method)"
|
1642
|
+
<a href="#givenCount-instance_method" title="#givenCount (instance method)">#<strong>givenCount</strong> ⇒ Object </a>
|
1639
1643
|
|
1640
1644
|
|
1641
1645
|
|
@@ -1659,7 +1663,7 @@ subcommands.</p>
|
|
1659
1663
|
<li class="public ">
|
1660
1664
|
<span class="summary_signature">
|
1661
1665
|
|
1662
|
-
<a href="#givenSubcmd-instance_method" title="#givenSubcmd (instance method)"
|
1666
|
+
<a href="#givenSubcmd-instance_method" title="#givenSubcmd (instance method)">#<strong>givenSubcmd</strong> ⇒ Object </a>
|
1663
1667
|
|
1664
1668
|
|
1665
1669
|
|
@@ -1683,7 +1687,7 @@ subcommands.</p>
|
|
1683
1687
|
<li class="public ">
|
1684
1688
|
<span class="summary_signature">
|
1685
1689
|
|
1686
|
-
<a href="#hasSwitchStyleDoc-instance_method" title="#hasSwitchStyleDoc (instance method)"
|
1690
|
+
<a href="#hasSwitchStyleDoc-instance_method" title="#hasSwitchStyleDoc (instance method)">#<strong>hasSwitchStyleDoc</strong> ⇒ Object </a>
|
1687
1691
|
|
1688
1692
|
|
1689
1693
|
|
@@ -1707,7 +1711,7 @@ subcommands.</p>
|
|
1707
1711
|
<li class="public ">
|
1708
1712
|
<span class="summary_signature">
|
1709
1713
|
|
1710
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
1714
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name, opt, type, doc, value = nil) ⇒ Opt </a>
|
1711
1715
|
|
1712
1716
|
|
1713
1717
|
|
@@ -1733,7 +1737,7 @@ subcommands.</p>
|
|
1733
1737
|
<li class="public ">
|
1734
1738
|
<span class="summary_signature">
|
1735
1739
|
|
1736
|
-
<a href="#opt-instance_method" title="#opt (instance method)"
|
1740
|
+
<a href="#opt-instance_method" title="#opt (instance method)">#<strong>opt</strong> ⇒ Object </a>
|
1737
1741
|
|
1738
1742
|
|
1739
1743
|
|
@@ -1757,7 +1761,7 @@ subcommands.</p>
|
|
1757
1761
|
<li class="public ">
|
1758
1762
|
<span class="summary_signature">
|
1759
1763
|
|
1760
|
-
<a href="#params-instance_method" title="#params (instance method)"
|
1764
|
+
<a href="#params-instance_method" title="#params (instance method)">#<strong>params</strong> ⇒ Hash </a>
|
1761
1765
|
|
1762
1766
|
|
1763
1767
|
|
@@ -1781,7 +1785,7 @@ subcommands.</p>
|
|
1781
1785
|
<li class="public ">
|
1782
1786
|
<span class="summary_signature">
|
1783
1787
|
|
1784
|
-
<a href="#parse-instance_method" title="#parse (instance method)"
|
1788
|
+
<a href="#parse-instance_method" title="#parse (instance method)">#<strong>parse</strong>(args, checkInvalids = true) ⇒ Object </a>
|
1785
1789
|
|
1786
1790
|
|
1787
1791
|
|
@@ -1805,7 +1809,7 @@ subcommands.</p>
|
|
1805
1809
|
<li class="public ">
|
1806
1810
|
<span class="summary_signature">
|
1807
1811
|
|
1808
|
-
<a href="#prim%3F-instance_method" title="#prim? (instance method)"
|
1812
|
+
<a href="#prim%3F-instance_method" title="#prim? (instance method)">#<strong>prim?</strong>(prim) ⇒ Boolean </a>
|
1809
1813
|
|
1810
1814
|
|
1811
1815
|
|
@@ -1829,7 +1833,7 @@ subcommands.</p>
|
|
1829
1833
|
<li class="public ">
|
1830
1834
|
<span class="summary_signature">
|
1831
1835
|
|
1832
|
-
<a href="#setOptionSubcmd-instance_method" title="#setOptionSubcmd (instance method)"
|
1836
|
+
<a href="#setOptionSubcmd-instance_method" title="#setOptionSubcmd (instance method)">#<strong>setOptionSubcmd</strong>(opts, subs) ⇒ Object </a>
|
1833
1837
|
|
1834
1838
|
|
1835
1839
|
|
@@ -1853,7 +1857,7 @@ subcommands.</p>
|
|
1853
1857
|
<li class="public ">
|
1854
1858
|
<span class="summary_signature">
|
1855
1859
|
|
1856
|
-
<a href="#setRuleCheck-instance_method" title="#setRuleCheck (instance method)"
|
1860
|
+
<a href="#setRuleCheck-instance_method" title="#setRuleCheck (instance method)">#<strong>setRuleCheck</strong>(&rule) ⇒ Object </a>
|
1857
1861
|
|
1858
1862
|
|
1859
1863
|
|
@@ -1877,7 +1881,7 @@ subcommands.</p>
|
|
1877
1881
|
<li class="public ">
|
1878
1882
|
<span class="summary_signature">
|
1879
1883
|
|
1880
|
-
<a href="#setUsageFooter-instance_method" title="#setUsageFooter (instance method)"
|
1884
|
+
<a href="#setUsageFooter-instance_method" title="#setUsageFooter (instance method)">#<strong>setUsageFooter</strong>(str) ⇒ Object </a>
|
1881
1885
|
|
1882
1886
|
|
1883
1887
|
|
@@ -1901,7 +1905,7 @@ subcommands.</p>
|
|
1901
1905
|
<li class="public ">
|
1902
1906
|
<span class="summary_signature">
|
1903
1907
|
|
1904
|
-
<a href="#setUsageHeader-instance_method" title="#setUsageHeader (instance method)"
|
1908
|
+
<a href="#setUsageHeader-instance_method" title="#setUsageHeader (instance method)">#<strong>setUsageHeader</strong>(str) ⇒ Object </a>
|
1905
1909
|
|
1906
1910
|
|
1907
1911
|
|
@@ -1925,7 +1929,7 @@ subcommands.</p>
|
|
1925
1929
|
<li class="public ">
|
1926
1930
|
<span class="summary_signature">
|
1927
1931
|
|
1928
|
-
<a href="#suball-instance_method" title="#suball (instance method)"
|
1932
|
+
<a href="#suball-instance_method" title="#suball (instance method)">#<strong>suball</strong> ⇒ Object </a>
|
1929
1933
|
|
1930
1934
|
|
1931
1935
|
|
@@ -1949,7 +1953,7 @@ subcommands.</p>
|
|
1949
1953
|
<li class="public ">
|
1950
1954
|
<span class="summary_signature">
|
1951
1955
|
|
1952
|
-
<a href="#suboptDoc-instance_method" title="#suboptDoc (instance method)"
|
1956
|
+
<a href="#suboptDoc-instance_method" title="#suboptDoc (instance method)">#<strong>suboptDoc</strong> ⇒ Object </a>
|
1953
1957
|
|
1954
1958
|
|
1955
1959
|
|
@@ -1973,7 +1977,7 @@ subcommands.</p>
|
|
1973
1977
|
<li class="public ">
|
1974
1978
|
<span class="summary_signature">
|
1975
1979
|
|
1976
|
-
<a href="#to_hash-instance_method" title="#to_hash (instance method)"
|
1980
|
+
<a href="#to_hash-instance_method" title="#to_hash (instance method)">#<strong>to_hash</strong> ⇒ Object </a>
|
1977
1981
|
|
1978
1982
|
|
1979
1983
|
|
@@ -1997,7 +2001,7 @@ subcommands.</p>
|
|
1997
2001
|
<li class="public ">
|
1998
2002
|
<span class="summary_signature">
|
1999
2003
|
|
2000
|
-
<a href="#to_hopt-instance_method" title="#to_hopt (instance method)"
|
2004
|
+
<a href="#to_hopt-instance_method" title="#to_hopt (instance method)">#<strong>to_hopt</strong> ⇒ Object </a>
|
2001
2005
|
|
2002
2006
|
|
2003
2007
|
|
@@ -2021,7 +2025,7 @@ subcommands.</p>
|
|
2021
2025
|
<li class="public ">
|
2022
2026
|
<span class="summary_signature">
|
2023
2027
|
|
2024
|
-
<a href="#usage-instance_method" title="#usage (instance method)"
|
2028
|
+
<a href="#usage-instance_method" title="#usage (instance method)">#<strong>usage</strong>(doExit = nil, ruleHelp = nil) ⇒ Object </a>
|
2025
2029
|
|
2026
2030
|
|
2027
2031
|
|
@@ -2045,7 +2049,7 @@ subcommands.</p>
|
|
2045
2049
|
<li class="public ">
|
2046
2050
|
<span class="summary_signature">
|
2047
2051
|
|
2048
|
-
<a href="#usageCommand-instance_method" title="#usageCommand (instance method)"
|
2052
|
+
<a href="#usageCommand-instance_method" title="#usageCommand (instance method)">#<strong>usageCommand</strong> ⇒ Object </a>
|
2049
2053
|
|
2050
2054
|
|
2051
2055
|
|
@@ -2069,7 +2073,7 @@ subcommands.</p>
|
|
2069
2073
|
<li class="public ">
|
2070
2074
|
<span class="summary_signature">
|
2071
2075
|
|
2072
|
-
<a href="#usageIfHelp-instance_method" title="#usageIfHelp (instance method)"
|
2076
|
+
<a href="#usageIfHelp-instance_method" title="#usageIfHelp (instance method)">#<strong>usageIfHelp</strong> ⇒ Object </a>
|
2073
2077
|
|
2074
2078
|
|
2075
2079
|
|
@@ -2093,7 +2097,7 @@ subcommands.</p>
|
|
2093
2097
|
<li class="public ">
|
2094
2098
|
<span class="summary_signature">
|
2095
2099
|
|
2096
|
-
<a href="#usageNormal-instance_method" title="#usageNormal (instance method)"
|
2100
|
+
<a href="#usageNormal-instance_method" title="#usageNormal (instance method)">#<strong>usageNormal</strong> ⇒ Object </a>
|
2097
2101
|
|
2098
2102
|
|
2099
2103
|
|
@@ -2117,7 +2121,7 @@ subcommands.</p>
|
|
2117
2121
|
<li class="public ">
|
2118
2122
|
<span class="summary_signature">
|
2119
2123
|
|
2120
|
-
<a href="#warn-instance_method" title="#warn (instance method)"
|
2124
|
+
<a href="#warn-instance_method" title="#warn (instance method)">#<strong>warn</strong>(str, nl = false) ⇒ Object </a>
|
2121
2125
|
|
2122
2126
|
|
2123
2127
|
|
@@ -2141,7 +2145,7 @@ subcommands.</p>
|
|
2141
2145
|
<li class="public ">
|
2142
2146
|
<span class="summary_signature">
|
2143
2147
|
|
2144
|
-
<a href="
|
2148
|
+
<a href="#~-instance_method" title="#~ (instance method)">#<strong>~</strong> ⇒ Object </a>
|
2145
2149
|
|
2146
2150
|
|
2147
2151
|
|
@@ -2182,7 +2186,7 @@ subcommands.</p>
|
|
2182
2186
|
<div class="method_details first">
|
2183
2187
|
<h3 class="signature first" id="initialize-instance_method">
|
2184
2188
|
|
2185
|
-
|
2189
|
+
#<strong>initialize</strong>(name, opt, type, doc, value = nil) ⇒ <tt><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></tt>
|
2186
2190
|
|
2187
2191
|
|
2188
2192
|
|
@@ -2291,35 +2295,35 @@ subcommands.</p>
|
|
2291
2295
|
<pre class="lines">
|
2292
2296
|
|
2293
2297
|
|
2294
|
-
1204
|
2295
|
-
1205
|
2296
|
-
1206
|
2297
|
-
1207
|
2298
|
-
1208
|
2299
|
-
1209
|
2300
|
-
1210
|
2301
|
-
1211
|
2302
|
-
1212
|
2303
|
-
1213
|
2304
|
-
1214
|
2305
|
-
1215
|
2306
|
-
1216
|
2307
|
-
1217
|
2308
|
-
1218
|
2309
|
-
1219
|
2310
|
-
1220
|
2311
|
-
1221
|
2312
|
-
1222
|
2313
2298
|
1223
|
2314
2299
|
1224
|
2315
2300
|
1225
|
2316
2301
|
1226
|
2317
2302
|
1227
|
2318
2303
|
1228
|
2319
|
-
1229
|
2304
|
+
1229
|
2305
|
+
1230
|
2306
|
+
1231
|
2307
|
+
1232
|
2308
|
+
1233
|
2309
|
+
1234
|
2310
|
+
1235
|
2311
|
+
1236
|
2312
|
+
1237
|
2313
|
+
1238
|
2314
|
+
1239
|
2315
|
+
1240
|
2316
|
+
1241
|
2317
|
+
1242
|
2318
|
+
1243
|
2319
|
+
1244
|
2320
|
+
1245
|
2321
|
+
1246
|
2322
|
+
1247
|
2323
|
+
1248</pre>
|
2320
2324
|
</td>
|
2321
2325
|
<td>
|
2322
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2326
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1223</span>
|
2323
2327
|
|
2324
2328
|
<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>
|
2325
2329
|
<span class='ivar'>@parent</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
@@ -2345,7 +2349,7 @@ subcommands.</p>
|
|
2345
2349
|
|
2346
2350
|
<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>
|
2347
2351
|
|
2348
|
-
<span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_addOpt'>addOpt</span><span class='lparen'>(</span> <span class='kw'>self</span> <span class='rparen'>)</span>
|
2352
|
+
<span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_addOpt'><span class='object_link'><a href="#addOpt-class_method" title="Como::Opt.addOpt (method)">addOpt</a></span></span><span class='lparen'>(</span> <span class='kw'>self</span> <span class='rparen'>)</span>
|
2349
2353
|
<span class='kw'>end</span></pre>
|
2350
2354
|
</td>
|
2351
2355
|
</tr>
|
@@ -2362,7 +2366,7 @@ subcommands.</p>
|
|
2362
2366
|
<div class="method_details first">
|
2363
2367
|
<h3 class="signature first" id="config-instance_method">
|
2364
2368
|
|
2365
|
-
|
2369
|
+
#<strong>config</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
2366
2370
|
|
2367
2371
|
|
2368
2372
|
|
@@ -2385,12 +2389,12 @@ subcommands.</p>
|
|
2385
2389
|
<pre class="lines">
|
2386
2390
|
|
2387
2391
|
|
2388
|
-
|
2389
|
-
|
2390
|
-
|
2392
|
+
1210
|
2393
|
+
1211
|
2394
|
+
1212</pre>
|
2391
2395
|
</td>
|
2392
2396
|
<td>
|
2393
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2397
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1210</span>
|
2394
2398
|
|
2395
2399
|
<span class='kw'>def</span> <span class='id identifier rubyid_config'>config</span>
|
2396
2400
|
<span class='ivar'>@config</span>
|
@@ -2405,7 +2409,7 @@ subcommands.</p>
|
|
2405
2409
|
<div class="method_details ">
|
2406
2410
|
<h3 class="signature " id="doc-instance_method">
|
2407
2411
|
|
2408
|
-
|
2412
|
+
#<strong>doc</strong> ⇒ <tt>Object</tt>
|
2409
2413
|
|
2410
2414
|
|
2411
2415
|
|
@@ -2428,12 +2432,12 @@ subcommands.</p>
|
|
2428
2432
|
<pre class="lines">
|
2429
2433
|
|
2430
2434
|
|
2431
|
-
|
2432
|
-
|
2433
|
-
|
2435
|
+
1198
|
2436
|
+
1199
|
2437
|
+
1200</pre>
|
2434
2438
|
</td>
|
2435
2439
|
<td>
|
2436
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2440
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1198</span>
|
2437
2441
|
|
2438
2442
|
<span class='kw'>def</span> <span class='id identifier rubyid_doc'>doc</span>
|
2439
2443
|
<span class='ivar'>@doc</span>
|
@@ -2448,7 +2452,7 @@ subcommands.</p>
|
|
2448
2452
|
<div class="method_details ">
|
2449
2453
|
<h3 class="signature " id="given-instance_method">
|
2450
2454
|
|
2451
|
-
|
2455
|
+
#<strong>given</strong>(optArg = false, &prog) ⇒ <tt>Object</tt>
|
2452
2456
|
|
2453
2457
|
|
2454
2458
|
|
@@ -2499,24 +2503,24 @@ given.</p>
|
|
2499
2503
|
<pre class="lines">
|
2500
2504
|
|
2501
2505
|
|
2502
|
-
|
2503
|
-
|
2504
|
-
|
2505
|
-
|
2506
|
-
|
2507
|
-
|
2508
|
-
|
2509
|
-
|
2510
|
-
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2506
|
+
1665
|
2507
|
+
1666
|
2508
|
+
1667
|
2509
|
+
1668
|
2510
|
+
1669
|
2511
|
+
1670
|
2512
|
+
1671
|
2513
|
+
1672
|
2514
|
+
1673
|
2515
|
+
1674
|
2516
|
+
1675
|
2517
|
+
1676
|
2518
|
+
1677
|
2519
|
+
1678
|
2520
|
+
1679</pre>
|
2517
2521
|
</td>
|
2518
2522
|
<td>
|
2519
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2523
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1665</span>
|
2520
2524
|
|
2521
2525
|
<span class='kw'>def</span> <span class='id identifier rubyid_given'>given</span><span class='lparen'>(</span> <span class='id identifier rubyid_optArg'>optArg</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>
|
2522
2526
|
<span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
@@ -2543,7 +2547,7 @@ given.</p>
|
|
2543
2547
|
<div class="method_details ">
|
2544
2548
|
<h3 class="signature " id="longOpt-instance_method">
|
2545
2549
|
|
2546
|
-
|
2550
|
+
#<strong>longOpt</strong> ⇒ <tt>Object</tt>
|
2547
2551
|
|
2548
2552
|
|
2549
2553
|
|
@@ -2566,12 +2570,12 @@ given.</p>
|
|
2566
2570
|
<pre class="lines">
|
2567
2571
|
|
2568
2572
|
|
2569
|
-
|
2570
|
-
|
2571
|
-
|
2573
|
+
1189
|
2574
|
+
1190
|
2575
|
+
1191</pre>
|
2572
2576
|
</td>
|
2573
2577
|
<td>
|
2574
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2578
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1189</span>
|
2575
2579
|
|
2576
2580
|
<span class='kw'>def</span> <span class='id identifier rubyid_longOpt'>longOpt</span>
|
2577
2581
|
<span class='ivar'>@longOpt</span>
|
@@ -2586,7 +2590,7 @@ given.</p>
|
|
2586
2590
|
<div class="method_details ">
|
2587
2591
|
<h3 class="signature " id="name-instance_method">
|
2588
2592
|
|
2589
|
-
|
2593
|
+
#<strong>name</strong> ⇒ <tt>Object</tt>
|
2590
2594
|
|
2591
2595
|
|
2592
2596
|
|
@@ -2609,12 +2613,12 @@ given.</p>
|
|
2609
2613
|
<pre class="lines">
|
2610
2614
|
|
2611
2615
|
|
2612
|
-
|
2613
|
-
|
2614
|
-
|
2616
|
+
1183
|
2617
|
+
1184
|
2618
|
+
1185</pre>
|
2615
2619
|
</td>
|
2616
2620
|
<td>
|
2617
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2621
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1183</span>
|
2618
2622
|
|
2619
2623
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
2620
2624
|
<span class='ivar'>@name</span>
|
@@ -2629,7 +2633,7 @@ given.</p>
|
|
2629
2633
|
<div class="method_details ">
|
2630
2634
|
<h3 class="signature " id="parent-instance_method">
|
2631
2635
|
|
2632
|
-
|
2636
|
+
#<strong>parent</strong> ⇒ <tt>Object</tt>
|
2633
2637
|
|
2634
2638
|
|
2635
2639
|
|
@@ -2652,12 +2656,12 @@ given.</p>
|
|
2652
2656
|
<pre class="lines">
|
2653
2657
|
|
2654
2658
|
|
2655
|
-
|
2656
|
-
|
2657
|
-
|
2659
|
+
1179
|
2660
|
+
1180
|
2661
|
+
1181</pre>
|
2658
2662
|
</td>
|
2659
2663
|
<td>
|
2660
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2664
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1179</span>
|
2661
2665
|
|
2662
2666
|
<span class='kw'>def</span> <span class='id identifier rubyid_parent'>parent</span>
|
2663
2667
|
<span class='ivar'>@parent</span>
|
@@ -2672,7 +2676,7 @@ given.</p>
|
|
2672
2676
|
<div class="method_details ">
|
2673
2677
|
<h3 class="signature " id="rules-instance_method">
|
2674
2678
|
|
2675
|
-
|
2679
|
+
#<strong>rules</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
2676
2680
|
|
2677
2681
|
|
2678
2682
|
|
@@ -2695,12 +2699,12 @@ given.</p>
|
|
2695
2699
|
<pre class="lines">
|
2696
2700
|
|
2697
2701
|
|
2698
|
-
|
2699
|
-
|
2700
|
-
|
2702
|
+
1213
|
2703
|
+
1214
|
2704
|
+
1215</pre>
|
2701
2705
|
</td>
|
2702
2706
|
<td>
|
2703
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2707
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1213</span>
|
2704
2708
|
|
2705
2709
|
<span class='kw'>def</span> <span class='id identifier rubyid_rules'>rules</span>
|
2706
2710
|
<span class='ivar'>@rules</span>
|
@@ -2715,7 +2719,7 @@ given.</p>
|
|
2715
2719
|
<div class="method_details ">
|
2716
2720
|
<h3 class="signature " id="shortOpt-instance_method">
|
2717
2721
|
|
2718
|
-
|
2722
|
+
#<strong>shortOpt</strong> ⇒ <tt>Object</tt>
|
2719
2723
|
|
2720
2724
|
|
2721
2725
|
|
@@ -2738,12 +2742,12 @@ given.</p>
|
|
2738
2742
|
<pre class="lines">
|
2739
2743
|
|
2740
2744
|
|
2741
|
-
|
2742
|
-
|
2743
|
-
|
2745
|
+
1186
|
2746
|
+
1187
|
2747
|
+
1188</pre>
|
2744
2748
|
</td>
|
2745
2749
|
<td>
|
2746
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2750
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1186</span>
|
2747
2751
|
|
2748
2752
|
<span class='kw'>def</span> <span class='id identifier rubyid_shortOpt'>shortOpt</span>
|
2749
2753
|
<span class='ivar'>@shortOpt</span>
|
@@ -2758,7 +2762,7 @@ given.</p>
|
|
2758
2762
|
<div class="method_details ">
|
2759
2763
|
<h3 class="signature " id="subcmd-instance_method">
|
2760
2764
|
|
2761
|
-
|
2765
|
+
#<strong>subcmd</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
2762
2766
|
|
2763
2767
|
|
2764
2768
|
|
@@ -2781,12 +2785,12 @@ given.</p>
|
|
2781
2785
|
<pre class="lines">
|
2782
2786
|
|
2783
2787
|
|
2784
|
-
|
2785
|
-
|
2786
|
-
|
2788
|
+
1207
|
2789
|
+
1208
|
2790
|
+
1209</pre>
|
2787
2791
|
</td>
|
2788
2792
|
<td>
|
2789
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2793
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1207</span>
|
2790
2794
|
|
2791
2795
|
<span class='kw'>def</span> <span class='id identifier rubyid_subcmd'>subcmd</span>
|
2792
2796
|
<span class='ivar'>@subcmd</span>
|
@@ -2801,7 +2805,7 @@ given.</p>
|
|
2801
2805
|
<div class="method_details ">
|
2802
2806
|
<h3 class="signature " id="subopt-instance_method">
|
2803
2807
|
|
2804
|
-
|
2808
|
+
#<strong>subopt</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
2805
2809
|
|
2806
2810
|
|
2807
2811
|
|
@@ -2824,12 +2828,12 @@ given.</p>
|
|
2824
2828
|
<pre class="lines">
|
2825
2829
|
|
2826
2830
|
|
2827
|
-
|
2828
|
-
|
2829
|
-
|
2831
|
+
1204
|
2832
|
+
1205
|
2833
|
+
1206</pre>
|
2830
2834
|
</td>
|
2831
2835
|
<td>
|
2832
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2836
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1204</span>
|
2833
2837
|
|
2834
2838
|
<span class='kw'>def</span> <span class='id identifier rubyid_subopt'>subopt</span>
|
2835
2839
|
<span class='ivar'>@subopt</span>
|
@@ -2844,7 +2848,7 @@ given.</p>
|
|
2844
2848
|
<div class="method_details ">
|
2845
2849
|
<h3 class="signature " id="type-instance_method">
|
2846
2850
|
|
2847
|
-
|
2851
|
+
#<strong>type</strong> ⇒ <tt>Object</tt>
|
2848
2852
|
|
2849
2853
|
|
2850
2854
|
|
@@ -2867,12 +2871,12 @@ given.</p>
|
|
2867
2871
|
<pre class="lines">
|
2868
2872
|
|
2869
2873
|
|
2870
|
-
|
2871
|
-
|
2872
|
-
|
2874
|
+
1192
|
2875
|
+
1193
|
2876
|
+
1194</pre>
|
2873
2877
|
</td>
|
2874
2878
|
<td>
|
2875
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2879
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1192</span>
|
2876
2880
|
|
2877
2881
|
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
|
2878
2882
|
<span class='ivar'>@type</span>
|
@@ -2887,7 +2891,7 @@ given.</p>
|
|
2887
2891
|
<div class="method_details ">
|
2888
2892
|
<h3 class="signature " id="value-instance_method">
|
2889
2893
|
|
2890
|
-
|
2894
|
+
#<strong>value</strong> ⇒ <tt>Object</tt>
|
2891
2895
|
|
2892
2896
|
|
2893
2897
|
|
@@ -2910,12 +2914,12 @@ given.</p>
|
|
2910
2914
|
<pre class="lines">
|
2911
2915
|
|
2912
2916
|
|
2913
|
-
|
2914
|
-
|
2915
|
-
|
2917
|
+
1195
|
2918
|
+
1196
|
2919
|
+
1197</pre>
|
2916
2920
|
</td>
|
2917
2921
|
<td>
|
2918
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2922
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1195</span>
|
2919
2923
|
|
2920
2924
|
<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
|
2921
2925
|
<span class='ivar'>@value</span>
|
@@ -2935,7 +2939,7 @@ given.</p>
|
|
2935
2939
|
<div class="method_details first">
|
2936
2940
|
<h3 class="signature first" id="[]-class_method">
|
2937
2941
|
|
2938
|
-
|
2942
|
+
.<strong>[]</strong>(str) ⇒ <tt>Object</tt>
|
2939
2943
|
|
2940
2944
|
|
2941
2945
|
|
@@ -2959,31 +2963,31 @@ list of all options.</p>
|
|
2959
2963
|
<pre class="lines">
|
2960
2964
|
|
2961
2965
|
|
2962
|
-
|
2963
|
-
|
2964
|
-
|
2965
|
-
|
2966
|
-
|
2967
|
-
|
2968
|
-
|
2969
|
-
|
2970
|
-
|
2971
|
-
|
2972
|
-
|
2973
|
-
|
2974
|
-
|
2975
|
-
|
2966
|
+
1062
|
2967
|
+
1063
|
2968
|
+
1064
|
2969
|
+
1065
|
2970
|
+
1066
|
2971
|
+
1067
|
2972
|
+
1068
|
2973
|
+
1069
|
2974
|
+
1070
|
2975
|
+
1071
|
2976
|
+
1072
|
2977
|
+
1073
|
2978
|
+
1074
|
2979
|
+
1075</pre>
|
2976
2980
|
</td>
|
2977
2981
|
<td>
|
2978
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
2982
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1062</span>
|
2979
2983
|
|
2980
|
-
<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>
|
2984
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
2981
2985
|
|
2982
2986
|
<span class='comment'># Search Main first.
|
2983
|
-
</span> <span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <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_argByName'>argByName</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
2987
|
+
</span> <span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_main'><span class='object_link'><a href="#main-class_method" title="Como::Opt.main (method)">main</a></span></span><span class='period'>.</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>
|
2984
2988
|
|
2985
2989
|
<span class='kw'>unless</span> <span class='id identifier rubyid_ret'>ret</span>
|
2986
|
-
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</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_str'>str</span> <span class='rparen'>)</span>
|
2990
|
+
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_findOpt'><span class='object_link'><a href="#findOpt-class_method" title="Como::Opt.findOpt (method)">findOpt</a></span></span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
2987
2991
|
<span class='kw'>unless</span> <span class='id identifier rubyid_ret'>ret</span>
|
2988
2992
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>RuntimeError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Option \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_str'>str</span><span class='embexpr_end'>}</span><span class='tstring_content'>\" does not exist...</span><span class='tstring_end'>"</span></span>
|
2989
2993
|
<span class='kw'>end</span>
|
@@ -2999,7 +3003,7 @@ list of all options.</p>
|
|
2999
3003
|
<div class="method_details ">
|
3000
3004
|
<h3 class="signature " id="addOpt-class_method">
|
3001
3005
|
|
3002
|
-
|
3006
|
+
.<strong>addOpt</strong>(opt) ⇒ <tt>Object</tt>
|
3003
3007
|
|
3004
3008
|
|
3005
3009
|
|
@@ -3022,14 +3026,14 @@ list of all options.</p>
|
|
3022
3026
|
<pre class="lines">
|
3023
3027
|
|
3024
3028
|
|
3025
|
-
|
3026
|
-
|
3027
|
-
|
3029
|
+
1026
|
3030
|
+
1027
|
3031
|
+
1028</pre>
|
3028
3032
|
</td>
|
3029
3033
|
<td>
|
3030
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3034
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1026</span>
|
3031
3035
|
|
3032
|
-
<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>
|
3036
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3033
3037
|
<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>
|
3034
3038
|
<span class='kw'>end</span></pre>
|
3035
3039
|
</td>
|
@@ -3040,7 +3044,7 @@ list of all options.</p>
|
|
3040
3044
|
<div class="method_details ">
|
3041
3045
|
<h3 class="signature " id="author-class_method">
|
3042
3046
|
|
3043
|
-
|
3047
|
+
.<strong>author</strong> ⇒ <tt>Object</tt>
|
3044
3048
|
|
3045
3049
|
|
3046
3050
|
|
@@ -3063,14 +3067,14 @@ list of all options.</p>
|
|
3063
3067
|
<pre class="lines">
|
3064
3068
|
|
3065
3069
|
|
3066
|
-
|
3067
|
-
|
3068
|
-
|
3070
|
+
1091
|
3071
|
+
1092
|
3072
|
+
1093</pre>
|
3069
3073
|
</td>
|
3070
3074
|
<td>
|
3071
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3075
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1091</span>
|
3072
3076
|
|
3073
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_author'>author</span>
|
3077
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_author'>author</span>
|
3074
3078
|
<span class='cvar'>@@main</span><span class='period'>.</span><span class='id identifier rubyid_author'>author</span>
|
3075
3079
|
<span class='kw'>end</span></pre>
|
3076
3080
|
</td>
|
@@ -3081,7 +3085,7 @@ list of all options.</p>
|
|
3081
3085
|
<div class="method_details ">
|
3082
3086
|
<h3 class="signature " id="configGet-class_method">
|
3083
3087
|
|
3084
|
-
|
3088
|
+
.<strong>configGet</strong> ⇒ <tt>Object</tt>
|
3085
3089
|
|
3086
3090
|
|
3087
3091
|
|
@@ -3104,14 +3108,14 @@ list of all options.</p>
|
|
3104
3108
|
<pre class="lines">
|
3105
3109
|
|
3106
3110
|
|
3107
|
-
|
3108
|
-
|
3109
|
-
|
3111
|
+
1144
|
3112
|
+
1145
|
3113
|
+
1146</pre>
|
3110
3114
|
</td>
|
3111
3115
|
<td>
|
3112
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3116
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1144</span>
|
3113
3117
|
|
3114
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_configGet'>configGet</span>
|
3118
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configGet'>configGet</span>
|
3115
3119
|
<span class='cvar'>@@config</span>
|
3116
3120
|
<span class='kw'>end</span></pre>
|
3117
3121
|
</td>
|
@@ -3122,7 +3126,7 @@ list of all options.</p>
|
|
3122
3126
|
<div class="method_details ">
|
3123
3127
|
<h3 class="signature " id="configOverlay-class_method">
|
3124
3128
|
|
3125
|
-
|
3129
|
+
.<strong>configOverlay</strong>(config) ⇒ <tt>Object</tt>
|
3126
3130
|
|
3127
3131
|
|
3128
3132
|
|
@@ -3145,14 +3149,14 @@ list of all options.</p>
|
|
3145
3149
|
<pre class="lines">
|
3146
3150
|
|
3147
3151
|
|
3148
|
-
|
3149
|
-
|
3150
|
-
|
3152
|
+
1138
|
3153
|
+
1139
|
3154
|
+
1140</pre>
|
3151
3155
|
</td>
|
3152
3156
|
<td>
|
3153
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3157
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1138</span>
|
3154
3158
|
|
3155
|
-
<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>
|
3159
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3156
3160
|
<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>
|
3157
3161
|
<span class='kw'>end</span></pre>
|
3158
3162
|
</td>
|
@@ -3163,7 +3167,7 @@ list of all options.</p>
|
|
3163
3167
|
<div class="method_details ">
|
3164
3168
|
<h3 class="signature " id="configSet-class_method">
|
3165
3169
|
|
3166
|
-
|
3170
|
+
.<strong>configSet</strong>(config) ⇒ <tt>Object</tt>
|
3167
3171
|
|
3168
3172
|
|
3169
3173
|
|
@@ -3187,14 +3191,14 @@ list of all options.</p>
|
|
3187
3191
|
<pre class="lines">
|
3188
3192
|
|
3189
3193
|
|
3190
|
-
|
3191
|
-
|
3192
|
-
|
3194
|
+
1151
|
3195
|
+
1152
|
3196
|
+
1153</pre>
|
3193
3197
|
</td>
|
3194
3198
|
<td>
|
3195
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3199
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1151</span>
|
3196
3200
|
|
3197
|
-
<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>
|
3201
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3198
3202
|
<span class='cvar'>@@config</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span>
|
3199
3203
|
<span class='kw'>end</span></pre>
|
3200
3204
|
</td>
|
@@ -3205,7 +3209,7 @@ list of all options.</p>
|
|
3205
3209
|
<div class="method_details ">
|
3206
3210
|
<h3 class="signature " id="current-class_method">
|
3207
3211
|
|
3208
|
-
|
3212
|
+
.<strong>current</strong> ⇒ <tt>Object</tt>
|
3209
3213
|
|
3210
3214
|
|
3211
3215
|
|
@@ -3228,14 +3232,14 @@ list of all options.</p>
|
|
3228
3232
|
<pre class="lines">
|
3229
3233
|
|
3230
3234
|
|
3231
|
-
|
3232
|
-
|
3233
|
-
|
3235
|
+
1038
|
3236
|
+
1039
|
3237
|
+
1040</pre>
|
3234
3238
|
</td>
|
3235
3239
|
<td>
|
3236
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3240
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1038</span>
|
3237
3241
|
|
3238
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span>
|
3242
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span>
|
3239
3243
|
<span class='cvar'>@@subcmd</span>
|
3240
3244
|
<span class='kw'>end</span></pre>
|
3241
3245
|
</td>
|
@@ -3246,7 +3250,7 @@ list of all options.</p>
|
|
3246
3250
|
<div class="method_details ">
|
3247
3251
|
<h3 class="signature " id="default-class_method">
|
3248
3252
|
|
3249
|
-
|
3253
|
+
.<strong>default</strong> ⇒ <tt>Object</tt>
|
3250
3254
|
|
3251
3255
|
|
3252
3256
|
|
@@ -3269,15 +3273,15 @@ list of all options.</p>
|
|
3269
3273
|
<pre class="lines">
|
3270
3274
|
|
3271
3275
|
|
3272
|
-
|
3273
|
-
|
3274
|
-
|
3276
|
+
1104
|
3277
|
+
1105
|
3278
|
+
1106</pre>
|
3275
3279
|
</td>
|
3276
3280
|
<td>
|
3277
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3281
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1104</span>
|
3278
3282
|
|
3279
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_default'>default</span>
|
3280
|
-
<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>
|
3283
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_default'>default</span>
|
3284
|
+
<span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_main'><span class='object_link'><a href="#main-class_method" title="Como::Opt.main (method)">main</a></span></span><span class='period'>.</span><span class='id identifier rubyid_default'>default</span>
|
3281
3285
|
<span class='kw'>end</span></pre>
|
3282
3286
|
</td>
|
3283
3287
|
</tr>
|
@@ -3287,7 +3291,7 @@ list of all options.</p>
|
|
3287
3291
|
<div class="method_details ">
|
3288
3292
|
<h3 class="signature " id="defaultOpt-class_method">
|
3289
3293
|
|
3290
|
-
|
3294
|
+
.<strong>defaultOpt</strong>(doc = "No doc.") ⇒ <tt>Object</tt>
|
3291
3295
|
|
3292
3296
|
|
3293
3297
|
|
@@ -3310,14 +3314,14 @@ list of all options.</p>
|
|
3310
3314
|
<pre class="lines">
|
3311
3315
|
|
3312
3316
|
|
3313
|
-
|
3314
|
-
|
3315
|
-
|
3317
|
+
1120
|
3318
|
+
1121
|
3319
|
+
1122</pre>
|
3316
3320
|
</td>
|
3317
3321
|
<td>
|
3318
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3322
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1120</span>
|
3319
3323
|
|
3320
|
-
<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>
|
3324
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3321
3325
|
<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='lbracket'>[</span> <span class='symbol'>:default</span><span class='comma'>,</span> <span class='symbol'>:none</span><span class='comma'>,</span> <span class='symbol'>:one</span><span class='comma'>,</span> <span class='symbol'>:many</span><span class='comma'>,</span> <span class='symbol'>:opt</span> <span class='rbracket'>]</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>
|
3322
3326
|
<span class='kw'>end</span></pre>
|
3323
3327
|
</td>
|
@@ -3328,7 +3332,7 @@ list of all options.</p>
|
|
3328
3332
|
<div class="method_details ">
|
3329
3333
|
<h3 class="signature " id="each-class_method">
|
3330
3334
|
|
3331
|
-
|
3335
|
+
.<strong>each</strong>(&blk) ⇒ <tt>Object</tt>
|
3332
3336
|
|
3333
3337
|
|
3334
3338
|
|
@@ -3351,15 +3355,15 @@ list of all options.</p>
|
|
3351
3355
|
<pre class="lines">
|
3352
3356
|
|
3353
3357
|
|
3354
|
-
|
3355
|
-
|
3356
|
-
|
3358
|
+
1126
|
3359
|
+
1127
|
3360
|
+
1128</pre>
|
3357
3361
|
</td>
|
3358
3362
|
<td>
|
3359
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3363
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1126</span>
|
3360
3364
|
|
3361
|
-
<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>
|
3362
|
-
<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>
|
3365
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3366
|
+
<span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_main'><span class='object_link'><a href="#main-class_method" title="Como::Opt.main (method)">main</a></span></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>
|
3363
3367
|
<span class='kw'>end</span></pre>
|
3364
3368
|
</td>
|
3365
3369
|
</tr>
|
@@ -3369,7 +3373,7 @@ list of all options.</p>
|
|
3369
3373
|
<div class="method_details ">
|
3370
3374
|
<h3 class="signature " id="each_given-class_method">
|
3371
3375
|
|
3372
|
-
|
3376
|
+
.<strong>each_given</strong>(&blk) ⇒ <tt>Object</tt>
|
3373
3377
|
|
3374
3378
|
|
3375
3379
|
|
@@ -3392,15 +3396,15 @@ list of all options.</p>
|
|
3392
3396
|
<pre class="lines">
|
3393
3397
|
|
3394
3398
|
|
3395
|
-
|
3396
|
-
|
3397
|
-
|
3399
|
+
1132
|
3400
|
+
1133
|
3401
|
+
1134</pre>
|
3398
3402
|
</td>
|
3399
3403
|
<td>
|
3400
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3404
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1132</span>
|
3401
3405
|
|
3402
|
-
<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>
|
3403
|
-
<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>
|
3406
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3407
|
+
<span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_main'><span class='object_link'><a href="#main-class_method" title="Como::Opt.main (method)">main</a></span></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>
|
3404
3408
|
<span class='kw'>end</span></pre>
|
3405
3409
|
</td>
|
3406
3410
|
</tr>
|
@@ -3410,7 +3414,7 @@ list of all options.</p>
|
|
3410
3414
|
<div class="method_details ">
|
3411
3415
|
<h3 class="signature " id="error-class_method">
|
3412
3416
|
|
3413
|
-
|
3417
|
+
.<strong>error</strong>(str, nl = false) ⇒ <tt>Object</tt>
|
3414
3418
|
|
3415
3419
|
|
3416
3420
|
|
@@ -3433,15 +3437,15 @@ list of all options.</p>
|
|
3433
3437
|
<pre class="lines">
|
3434
3438
|
|
3435
3439
|
|
3436
|
-
|
3437
|
-
|
3438
|
-
|
3440
|
+
1157
|
3441
|
+
1158
|
3442
|
+
1159</pre>
|
3439
3443
|
</td>
|
3440
3444
|
<td>
|
3441
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3445
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1157</span>
|
3442
3446
|
|
3443
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</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>
|
3444
|
-
<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_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='rparen'>)</span>
|
3447
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</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>
|
3448
|
+
<span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_main'><span class='object_link'><a href="#main-class_method" title="Como::Opt.main (method)">main</a></span></span><span class='period'>.</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='rparen'>)</span>
|
3445
3449
|
<span class='kw'>end</span></pre>
|
3446
3450
|
</td>
|
3447
3451
|
</tr>
|
@@ -3451,7 +3455,7 @@ list of all options.</p>
|
|
3451
3455
|
<div class="method_details ">
|
3452
3456
|
<h3 class="signature " id="external-class_method">
|
3453
3457
|
|
3454
|
-
|
3458
|
+
.<strong>external</strong> ⇒ <tt>Object</tt>
|
3455
3459
|
|
3456
3460
|
|
3457
3461
|
|
@@ -3475,15 +3479,15 @@ after '–').</p>
|
|
3475
3479
|
<pre class="lines">
|
3476
3480
|
|
3477
3481
|
|
3478
|
-
|
3479
|
-
|
3480
|
-
|
3482
|
+
1098
|
3483
|
+
1099
|
3484
|
+
1100</pre>
|
3481
3485
|
</td>
|
3482
3486
|
<td>
|
3483
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3487
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1098</span>
|
3484
3488
|
|
3485
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_external'>external</span>
|
3486
|
-
<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>
|
3489
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_external'>external</span>
|
3490
|
+
<span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_main'><span class='object_link'><a href="#main-class_method" title="Como::Opt.main (method)">main</a></span></span><span class='period'>.</span><span class='id identifier rubyid_external'>external</span>
|
3487
3491
|
<span class='kw'>end</span></pre>
|
3488
3492
|
</td>
|
3489
3493
|
</tr>
|
@@ -3493,7 +3497,7 @@ after '–').</p>
|
|
3493
3497
|
<div class="method_details ">
|
3494
3498
|
<h3 class="signature " id="fatal-class_method">
|
3495
3499
|
|
3496
|
-
|
3500
|
+
.<strong>fatal</strong>(str) ⇒ <tt>Object</tt>
|
3497
3501
|
|
3498
3502
|
|
3499
3503
|
|
@@ -3516,15 +3520,15 @@ after '–').</p>
|
|
3516
3520
|
<pre class="lines">
|
3517
3521
|
|
3518
3522
|
|
3519
|
-
|
3520
|
-
|
3521
|
-
|
3523
|
+
1163
|
3524
|
+
1164
|
3525
|
+
1165</pre>
|
3522
3526
|
</td>
|
3523
3527
|
<td>
|
3524
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3528
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1163</span>
|
3525
3529
|
|
3526
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</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>
|
3527
|
-
<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_fatal'>fatal</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
3530
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</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>
|
3531
|
+
<span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_main'><span class='object_link'><a href="#main-class_method" title="Como::Opt.main (method)">main</a></span></span><span class='period'>.</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>
|
3528
3532
|
<span class='kw'>end</span></pre>
|
3529
3533
|
</td>
|
3530
3534
|
</tr>
|
@@ -3534,7 +3538,7 @@ after '–').</p>
|
|
3534
3538
|
<div class="method_details ">
|
3535
3539
|
<h3 class="signature " id="findOpt-class_method">
|
3536
3540
|
|
3537
|
-
|
3541
|
+
.<strong>findOpt</strong>(name) ⇒ <tt>Object</tt>
|
3538
3542
|
|
3539
3543
|
|
3540
3544
|
|
@@ -3557,19 +3561,19 @@ after '–').</p>
|
|
3557
3561
|
<pre class="lines">
|
3558
3562
|
|
3559
3563
|
|
3560
|
-
|
3561
|
-
|
3562
|
-
|
3563
|
-
|
3564
|
-
|
3565
|
-
|
3566
|
-
|
3567
|
-
|
3564
|
+
1044
|
3565
|
+
1045
|
3566
|
+
1046
|
3567
|
+
1047
|
3568
|
+
1048
|
3569
|
+
1049
|
3570
|
+
1050
|
3571
|
+
1051</pre>
|
3568
3572
|
</td>
|
3569
3573
|
<td>
|
3570
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3574
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1044</span>
|
3571
3575
|
|
3572
|
-
<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>
|
3576
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3573
3577
|
<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>
|
3574
3578
|
<span class='kw'>if</span> <span class='id identifier rubyid_idx'>idx</span>
|
3575
3579
|
<span class='cvar'>@@opts</span><span class='lbracket'>[</span> <span class='id identifier rubyid_idx'>idx</span> <span class='rbracket'>]</span>
|
@@ -3585,7 +3589,7 @@ after '–').</p>
|
|
3585
3589
|
<div class="method_details ">
|
3586
3590
|
<h3 class="signature " id="full-class_method">
|
3587
3591
|
|
3588
|
-
|
3592
|
+
.<strong>full</strong>(name, opt, type, doc = "No doc.") ⇒ <tt>Object</tt>
|
3589
3593
|
|
3590
3594
|
|
3591
3595
|
|
@@ -3608,14 +3612,14 @@ after '–').</p>
|
|
3608
3612
|
<pre class="lines">
|
3609
3613
|
|
3610
3614
|
|
3611
|
-
|
3612
|
-
|
3613
|
-
|
3615
|
+
1110
|
3616
|
+
1111
|
3617
|
+
1112</pre>
|
3614
3618
|
</td>
|
3615
3619
|
<td>
|
3616
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3620
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1110</span>
|
3617
3621
|
|
3618
|
-
<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>
|
3622
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3619
3623
|
<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>
|
3620
3624
|
<span class='kw'>end</span></pre>
|
3621
3625
|
</td>
|
@@ -3626,7 +3630,7 @@ after '–').</p>
|
|
3626
3630
|
<div class="method_details ">
|
3627
3631
|
<h3 class="signature " id="main-class_method">
|
3628
3632
|
|
3629
|
-
|
3633
|
+
.<strong>main</strong> ⇒ <tt>Object</tt>
|
3630
3634
|
|
3631
3635
|
|
3632
3636
|
|
@@ -3649,14 +3653,14 @@ after '–').</p>
|
|
3649
3653
|
<pre class="lines">
|
3650
3654
|
|
3651
3655
|
|
3652
|
-
|
3653
|
-
|
3654
|
-
|
3656
|
+
1020
|
3657
|
+
1021
|
3658
|
+
1022</pre>
|
3655
3659
|
</td>
|
3656
3660
|
<td>
|
3657
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3661
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1020</span>
|
3658
3662
|
|
3659
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_main'>main</span>
|
3663
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_main'>main</span>
|
3660
3664
|
<span class='cvar'>@@main</span>
|
3661
3665
|
<span class='kw'>end</span></pre>
|
3662
3666
|
</td>
|
@@ -3667,7 +3671,7 @@ after '–').</p>
|
|
3667
3671
|
<div class="method_details ">
|
3668
3672
|
<h3 class="signature " id="progname-class_method">
|
3669
3673
|
|
3670
|
-
|
3674
|
+
.<strong>progname</strong> ⇒ <tt>Object</tt>
|
3671
3675
|
|
3672
3676
|
|
3673
3677
|
|
@@ -3690,14 +3694,14 @@ after '–').</p>
|
|
3690
3694
|
<pre class="lines">
|
3691
3695
|
|
3692
3696
|
|
3693
|
-
|
3694
|
-
|
3695
|
-
|
3697
|
+
1079
|
3698
|
+
1080
|
3699
|
+
1081</pre>
|
3696
3700
|
</td>
|
3697
3701
|
<td>
|
3698
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3702
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1079</span>
|
3699
3703
|
|
3700
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_progname'>progname</span>
|
3704
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_progname'>progname</span>
|
3701
3705
|
<span class='cvar'>@@main</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span>
|
3702
3706
|
<span class='kw'>end</span></pre>
|
3703
3707
|
</td>
|
@@ -3708,7 +3712,7 @@ after '–').</p>
|
|
3708
3712
|
<div class="method_details ">
|
3709
3713
|
<h3 class="signature " id="reset-class_method">
|
3710
3714
|
|
3711
|
-
|
3715
|
+
.<strong>reset</strong> ⇒ <tt>Object</tt>
|
3712
3716
|
|
3713
3717
|
|
3714
3718
|
|
@@ -3731,14 +3735,14 @@ after '–').</p>
|
|
3731
3735
|
<pre class="lines">
|
3732
3736
|
|
3733
3737
|
|
3734
|
-
|
3735
|
-
|
3736
|
-
|
3738
|
+
1055
|
3739
|
+
1056
|
3740
|
+
1057</pre>
|
3737
3741
|
</td>
|
3738
3742
|
<td>
|
3739
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3743
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1055</span>
|
3740
3744
|
|
3741
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_reset'>reset</span>
|
3745
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_reset'>reset</span>
|
3742
3746
|
<span class='cvar'>@@opts</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
3743
3747
|
<span class='kw'>end</span></pre>
|
3744
3748
|
</td>
|
@@ -3749,7 +3753,7 @@ after '–').</p>
|
|
3749
3753
|
<div class="method_details ">
|
3750
3754
|
<h3 class="signature " id="setMain-class_method">
|
3751
3755
|
|
3752
|
-
|
3756
|
+
.<strong>setMain</strong>(main) ⇒ <tt>Object</tt>
|
3753
3757
|
|
3754
3758
|
|
3755
3759
|
|
@@ -3772,17 +3776,17 @@ after '–').</p>
|
|
3772
3776
|
<pre class="lines">
|
3773
3777
|
|
3774
3778
|
|
3775
|
-
|
3776
|
-
|
3777
|
-
|
3778
|
-
|
3779
|
+
1014
|
3780
|
+
1015
|
3781
|
+
1016
|
3782
|
+
1017</pre>
|
3779
3783
|
</td>
|
3780
3784
|
<td>
|
3781
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3785
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1014</span>
|
3782
3786
|
|
3783
|
-
<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>
|
3787
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3784
3788
|
<span class='cvar'>@@main</span> <span class='op'>=</span> <span class='id identifier rubyid_main'>main</span>
|
3785
|
-
<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_main'>main</span> <span class='rparen'>)</span>
|
3789
|
+
<span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_setSubcmd'><span class='object_link'><a href="#setSubcmd-class_method" title="Como::Opt.setSubcmd (method)">setSubcmd</a></span></span><span class='lparen'>(</span> <span class='id identifier rubyid_main'>main</span> <span class='rparen'>)</span>
|
3786
3790
|
<span class='kw'>end</span></pre>
|
3787
3791
|
</td>
|
3788
3792
|
</tr>
|
@@ -3792,7 +3796,7 @@ after '–').</p>
|
|
3792
3796
|
<div class="method_details ">
|
3793
3797
|
<h3 class="signature " id="setSubcmd-class_method">
|
3794
3798
|
|
3795
|
-
|
3799
|
+
.<strong>setSubcmd</strong>(opt) ⇒ <tt>Object</tt>
|
3796
3800
|
|
3797
3801
|
|
3798
3802
|
|
@@ -3815,14 +3819,14 @@ after '–').</p>
|
|
3815
3819
|
<pre class="lines">
|
3816
3820
|
|
3817
3821
|
|
3818
|
-
|
3819
|
-
|
3820
|
-
|
3822
|
+
1032
|
3823
|
+
1033
|
3824
|
+
1034</pre>
|
3821
3825
|
</td>
|
3822
3826
|
<td>
|
3823
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3827
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1032</span>
|
3824
3828
|
|
3825
|
-
<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>
|
3829
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3826
3830
|
<span class='cvar'>@@subcmd</span> <span class='op'>=</span> <span class='id identifier rubyid_opt'>opt</span>
|
3827
3831
|
<span class='kw'>end</span></pre>
|
3828
3832
|
</td>
|
@@ -3833,7 +3837,7 @@ after '–').</p>
|
|
3833
3837
|
<div class="method_details ">
|
3834
3838
|
<h3 class="signature " id="subcmd-class_method">
|
3835
3839
|
|
3836
|
-
|
3840
|
+
.<strong>subcmd</strong>(name, doc = "No doc.") ⇒ <tt>Object</tt>
|
3837
3841
|
|
3838
3842
|
|
3839
3843
|
|
@@ -3856,14 +3860,14 @@ after '–').</p>
|
|
3856
3860
|
<pre class="lines">
|
3857
3861
|
|
3858
3862
|
|
3859
|
-
|
3860
|
-
|
3861
|
-
|
3863
|
+
1115
|
3864
|
+
1116
|
3865
|
+
1117</pre>
|
3862
3866
|
</td>
|
3863
3867
|
<td>
|
3864
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3868
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1115</span>
|
3865
3869
|
|
3866
|
-
<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>
|
3870
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></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>
|
3867
3871
|
<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>
|
3868
3872
|
<span class='kw'>end</span></pre>
|
3869
3873
|
</td>
|
@@ -3874,7 +3878,7 @@ after '–').</p>
|
|
3874
3878
|
<div class="method_details ">
|
3875
3879
|
<h3 class="signature " id="warn-class_method">
|
3876
3880
|
|
3877
|
-
|
3881
|
+
.<strong>warn</strong>(str, nl = false) ⇒ <tt>Object</tt>
|
3878
3882
|
|
3879
3883
|
|
3880
3884
|
|
@@ -3897,15 +3901,15 @@ after '–').</p>
|
|
3897
3901
|
<pre class="lines">
|
3898
3902
|
|
3899
3903
|
|
3900
|
-
|
3901
|
-
|
3902
|
-
|
3904
|
+
1169
|
3905
|
+
1170
|
3906
|
+
1171</pre>
|
3903
3907
|
</td>
|
3904
3908
|
<td>
|
3905
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3909
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1169</span>
|
3906
3910
|
|
3907
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</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>
|
3908
|
-
<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_warn'>warn</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='rparen'>)</span>
|
3911
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</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>
|
3912
|
+
<span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_main'><span class='object_link'><a href="#main-class_method" title="Como::Opt.main (method)">main</a></span></span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</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='rparen'>)</span>
|
3909
3913
|
<span class='kw'>end</span></pre>
|
3910
3914
|
</td>
|
3911
3915
|
</tr>
|
@@ -3915,7 +3919,7 @@ after '–').</p>
|
|
3915
3919
|
<div class="method_details ">
|
3916
3920
|
<h3 class="signature " id="year-class_method">
|
3917
3921
|
|
3918
|
-
|
3922
|
+
.<strong>year</strong> ⇒ <tt>Object</tt>
|
3919
3923
|
|
3920
3924
|
|
3921
3925
|
|
@@ -3938,14 +3942,14 @@ after '–').</p>
|
|
3938
3942
|
<pre class="lines">
|
3939
3943
|
|
3940
3944
|
|
3941
|
-
|
3942
|
-
|
3943
|
-
|
3945
|
+
1085
|
3946
|
+
1086
|
3947
|
+
1087</pre>
|
3944
3948
|
</td>
|
3945
3949
|
<td>
|
3946
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
3950
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1085</span>
|
3947
3951
|
|
3948
|
-
<span class='kw'>def</span> <span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span>
|
3952
|
+
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span>
|
3949
3953
|
<span class='cvar'>@@main</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span>
|
3950
3954
|
<span class='kw'>end</span></pre>
|
3951
3955
|
</td>
|
@@ -3962,7 +3966,7 @@ after '–').</p>
|
|
3962
3966
|
<div class="method_details first">
|
3963
3967
|
<h3 class="signature first" id="[]-instance_method">
|
3964
3968
|
|
3965
|
-
|
3969
|
+
#<strong>[]</strong>(str) ⇒ <tt>Object</tt>
|
3966
3970
|
|
3967
3971
|
|
3968
3972
|
|
@@ -3985,16 +3989,16 @@ after '–').</p>
|
|
3985
3989
|
<pre class="lines">
|
3986
3990
|
|
3987
3991
|
|
3988
|
-
|
3989
|
-
|
3990
|
-
|
3991
|
-
|
3992
|
-
|
3993
|
-
|
3994
|
-
|
3992
|
+
1591
|
3993
|
+
1592
|
3994
|
+
1593
|
3995
|
+
1594
|
3996
|
+
1595
|
3997
|
+
1596
|
3998
|
+
1597</pre>
|
3995
3999
|
</td>
|
3996
4000
|
<td>
|
3997
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4001
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1591</span>
|
3998
4002
|
|
3999
4003
|
<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>
|
4000
4004
|
<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>
|
@@ -4011,7 +4015,7 @@ after '–').</p>
|
|
4011
4015
|
<div class="method_details ">
|
4012
4016
|
<h3 class="signature " id="addOption-instance_method">
|
4013
4017
|
|
4014
|
-
|
4018
|
+
#<strong>addOption</strong>(opt) ⇒ <tt>Object</tt>
|
4015
4019
|
|
4016
4020
|
|
4017
4021
|
|
@@ -4054,13 +4058,13 @@ after '–').</p>
|
|
4054
4058
|
<pre class="lines">
|
4055
4059
|
|
4056
4060
|
|
4057
|
-
|
4058
|
-
|
4059
|
-
|
4060
|
-
|
4061
|
+
1268
|
4062
|
+
1269
|
4063
|
+
1270
|
4064
|
+
1271</pre>
|
4061
4065
|
</td>
|
4062
4066
|
<td>
|
4063
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4067
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1268</span>
|
4064
4068
|
|
4065
4069
|
<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>
|
4066
4070
|
<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>
|
@@ -4074,7 +4078,7 @@ after '–').</p>
|
|
4074
4078
|
<div class="method_details ">
|
4075
4079
|
<h3 class="signature " id="addSubcmd-instance_method">
|
4076
4080
|
|
4077
|
-
|
4081
|
+
#<strong>addSubcmd</strong>(cmd) ⇒ <tt>Object</tt>
|
4078
4082
|
|
4079
4083
|
|
4080
4084
|
|
@@ -4117,13 +4121,13 @@ after '–').</p>
|
|
4117
4121
|
<pre class="lines">
|
4118
4122
|
|
4119
4123
|
|
4120
|
-
|
4121
|
-
|
4122
|
-
|
4123
|
-
|
4124
|
+
1277
|
4125
|
+
1278
|
4126
|
+
1279
|
4127
|
+
1280</pre>
|
4124
4128
|
</td>
|
4125
4129
|
<td>
|
4126
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4130
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1277</span>
|
4127
4131
|
|
4128
4132
|
<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>
|
4129
4133
|
<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>
|
@@ -4137,7 +4141,7 @@ after '–').</p>
|
|
4137
4141
|
<div class="method_details ">
|
4138
4142
|
<h3 class="signature " id="apply-instance_method">
|
4139
4143
|
|
4140
|
-
|
4144
|
+
#<strong>apply</strong>(default = nil) ⇒ <tt>Object</tt>
|
4141
4145
|
|
4142
4146
|
|
4143
4147
|
|
@@ -4161,20 +4165,20 @@ after '–').</p>
|
|
4161
4165
|
<pre class="lines">
|
4162
4166
|
|
4163
4167
|
|
4164
|
-
|
4165
|
-
|
4166
|
-
|
4167
|
-
|
4168
|
-
|
4169
|
-
|
4170
|
-
|
4171
|
-
|
4172
|
-
|
4173
|
-
|
4174
|
-
|
4168
|
+
1646
|
4169
|
+
1647
|
4170
|
+
1648
|
4171
|
+
1649
|
4172
|
+
1650
|
4173
|
+
1651
|
4174
|
+
1652
|
4175
|
+
1653
|
4176
|
+
1654
|
4177
|
+
1655
|
4178
|
+
1656</pre>
|
4175
4179
|
</td>
|
4176
4180
|
<td>
|
4177
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4181
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1646</span>
|
4178
4182
|
|
4179
4183
|
<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>
|
4180
4184
|
<span class='kw'>if</span> <span class='id identifier rubyid_given'>given</span>
|
@@ -4195,7 +4199,7 @@ after '–').</p>
|
|
4195
4199
|
<div class="method_details ">
|
4196
4200
|
<h3 class="signature " id="applyConfig-instance_method">
|
4197
4201
|
|
4198
|
-
|
4202
|
+
#<strong>applyConfig</strong>(config) ⇒ <tt>Object</tt>
|
4199
4203
|
|
4200
4204
|
|
4201
4205
|
|
@@ -4238,12 +4242,12 @@ after '–').</p>
|
|
4238
4242
|
<pre class="lines">
|
4239
4243
|
|
4240
4244
|
|
4241
|
-
|
4242
|
-
|
4243
|
-
|
4245
|
+
1286
|
4246
|
+
1287
|
4247
|
+
1288</pre>
|
4244
4248
|
</td>
|
4245
4249
|
<td>
|
4246
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4250
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1286</span>
|
4247
4251
|
|
4248
4252
|
<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>
|
4249
4253
|
<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>
|
@@ -4256,7 +4260,7 @@ after '–').</p>
|
|
4256
4260
|
<div class="method_details ">
|
4257
4261
|
<h3 class="signature " id="argById-instance_method">
|
4258
4262
|
|
4259
|
-
|
4263
|
+
#<strong>argById</strong>(str) ⇒ <tt>Object</tt>
|
4260
4264
|
|
4261
4265
|
|
4262
4266
|
|
@@ -4279,26 +4283,26 @@ after '–').</p>
|
|
4279
4283
|
<pre class="lines">
|
4280
4284
|
|
4281
4285
|
|
4282
|
-
|
4283
|
-
|
4284
|
-
|
4285
|
-
|
4286
|
-
|
4287
|
-
|
4288
|
-
|
4289
|
-
|
4290
|
-
|
4291
|
-
|
4292
|
-
|
4293
|
-
|
4294
|
-
|
4295
|
-
|
4296
|
-
|
4297
|
-
|
4298
|
-
|
4286
|
+
1737
|
4287
|
+
1738
|
4288
|
+
1739
|
4289
|
+
1740
|
4290
|
+
1741
|
4291
|
+
1742
|
4292
|
+
1743
|
4293
|
+
1744
|
4294
|
+
1745
|
4295
|
+
1746
|
4296
|
+
1747
|
4297
|
+
1748
|
4298
|
+
1749
|
4299
|
+
1750
|
4300
|
+
1751
|
4301
|
+
1752
|
4302
|
+
1753</pre>
|
4299
4303
|
</td>
|
4300
4304
|
<td>
|
4301
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4305
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1737</span>
|
4302
4306
|
|
4303
4307
|
<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>
|
4304
4308
|
<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>
|
@@ -4325,7 +4329,7 @@ after '–').</p>
|
|
4325
4329
|
<div class="method_details ">
|
4326
4330
|
<h3 class="signature " id="argByName-instance_method">
|
4327
4331
|
|
4328
|
-
|
4332
|
+
#<strong>argByName</strong>(str) ⇒ <tt>Object</tt>
|
4329
4333
|
|
4330
4334
|
|
4331
4335
|
|
@@ -4348,26 +4352,26 @@ after '–').</p>
|
|
4348
4352
|
<pre class="lines">
|
4349
4353
|
|
4350
4354
|
|
4351
|
-
|
4352
|
-
|
4353
|
-
|
4354
|
-
|
4355
|
-
|
4356
|
-
|
4357
|
-
|
4358
|
-
|
4359
|
-
|
4360
|
-
|
4361
|
-
|
4362
|
-
|
4363
|
-
|
4364
|
-
|
4365
|
-
|
4366
|
-
|
4367
|
-
|
4355
|
+
1717
|
4356
|
+
1718
|
4357
|
+
1719
|
4358
|
+
1720
|
4359
|
+
1721
|
4360
|
+
1722
|
4361
|
+
1723
|
4362
|
+
1724
|
4363
|
+
1725
|
4364
|
+
1726
|
4365
|
+
1727
|
4366
|
+
1728
|
4367
|
+
1729
|
4368
|
+
1730
|
4369
|
+
1731
|
4370
|
+
1732
|
4371
|
+
1733</pre>
|
4368
4372
|
</td>
|
4369
4373
|
<td>
|
4370
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4374
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1717</span>
|
4371
4375
|
|
4372
4376
|
<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>
|
4373
4377
|
<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>
|
@@ -4394,7 +4398,7 @@ after '–').</p>
|
|
4394
4398
|
<div class="method_details ">
|
4395
4399
|
<h3 class="signature " id="check-instance_method">
|
4396
4400
|
|
4397
|
-
|
4401
|
+
#<strong>check</strong>(argsState) ⇒ <tt>Object</tt>
|
4398
4402
|
|
4399
4403
|
|
4400
4404
|
|
@@ -4417,25 +4421,6 @@ after '–').</p>
|
|
4417
4421
|
<pre class="lines">
|
4418
4422
|
|
4419
4423
|
|
4420
|
-
1284
|
4421
|
-
1285
|
4422
|
-
1286
|
4423
|
-
1287
|
4424
|
-
1288
|
4425
|
-
1289
|
4426
|
-
1290
|
4427
|
-
1291
|
4428
|
-
1292
|
4429
|
-
1293
|
4430
|
-
1294
|
4431
|
-
1295
|
4432
|
-
1296
|
4433
|
-
1297
|
4434
|
-
1298
|
4435
|
-
1299
|
4436
|
-
1300
|
4437
|
-
1301
|
4438
|
-
1302
|
4439
4424
|
1303
|
4440
4425
|
1304
|
4441
4426
|
1305
|
@@ -4458,10 +4443,29 @@ after '–').</p>
|
|
4458
4443
|
1322
|
4459
4444
|
1323
|
4460
4445
|
1324
|
4461
|
-
1325
|
4446
|
+
1325
|
4447
|
+
1326
|
4448
|
+
1327
|
4449
|
+
1328
|
4450
|
+
1329
|
4451
|
+
1330
|
4452
|
+
1331
|
4453
|
+
1332
|
4454
|
+
1333
|
4455
|
+
1334
|
4456
|
+
1335
|
4457
|
+
1336
|
4458
|
+
1337
|
4459
|
+
1338
|
4460
|
+
1339
|
4461
|
+
1340
|
4462
|
+
1341
|
4463
|
+
1342
|
4464
|
+
1343
|
4465
|
+
1344</pre>
|
4462
4466
|
</td>
|
4463
4467
|
<td>
|
4464
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4468
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1303</span>
|
4465
4469
|
|
4466
4470
|
<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>
|
4467
4471
|
|
@@ -4489,7 +4493,7 @@ after '–').</p>
|
|
4489
4493
|
|
4490
4494
|
<span class='kw'>begin</span>
|
4491
4495
|
<span class='id identifier rubyid_parse'>parse</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
4492
|
-
<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>
|
4496
|
+
<span class='kw'>rescue</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Opt/MissingArgument.html" title="Como::Opt::MissingArgument (class)">MissingArgument</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span> <span class='op'>=></span> <span class='id identifier rubyid_err'>err</span>
|
4493
4497
|
<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>
|
4494
4498
|
<span class='kw'>end</span>
|
4495
4499
|
|
@@ -4513,7 +4517,7 @@ after '–').</p>
|
|
4513
4517
|
<div class="method_details ">
|
4514
4518
|
<h3 class="signature " id="checkAlso-instance_method">
|
4515
4519
|
|
4516
|
-
|
4520
|
+
#<strong>checkAlso</strong>(opt, error, &check) ⇒ <tt>Object</tt>
|
4517
4521
|
|
4518
4522
|
|
4519
4523
|
|
@@ -4606,28 +4610,28 @@ after '–').</p>
|
|
4606
4610
|
<pre class="lines">
|
4607
4611
|
|
4608
4612
|
|
4609
|
-
|
4610
|
-
|
4611
|
-
|
4612
|
-
|
4613
|
-
|
4614
|
-
|
4615
|
-
|
4616
|
-
|
4617
|
-
|
4618
|
-
|
4619
|
-
|
4620
|
-
|
4613
|
+
1571
|
4614
|
+
1572
|
4615
|
+
1573
|
4616
|
+
1574
|
4617
|
+
1575
|
4618
|
+
1576
|
4619
|
+
1577
|
4620
|
+
1578
|
4621
|
+
1579
|
4622
|
+
1580
|
4623
|
+
1581
|
4624
|
+
1582</pre>
|
4621
4625
|
</td>
|
4622
4626
|
<td>
|
4623
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4627
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1571</span>
|
4624
4628
|
|
4625
4629
|
<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>
|
4626
4630
|
<span class='kw'>begin</span>
|
4627
4631
|
<span class='kw'>if</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_opt'>opt</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_evalCheck'>evalCheck</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_check'>check</span> <span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>true</span>
|
4628
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Opt</span><span class='op'>::</span><span class='const'>InvalidOption</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_error'>error</span><span class='comma'>,</span> <span class='kw'>self</span> <span class='rparen'>)</span>
|
4632
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span> <span class='id identifier rubyid_error'>error</span><span class='comma'>,</span> <span class='kw'>self</span> <span class='rparen'>)</span>
|
4629
4633
|
<span class='kw'>end</span>
|
4630
|
-
<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>
|
4634
|
+
<span class='kw'>rescue</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Opt/MissingArgument.html" title="Como::Opt::MissingArgument (class)">MissingArgument</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span> <span class='op'>=></span> <span class='id identifier rubyid_err'>err</span>
|
4631
4635
|
<span class='cvar'>@@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span>
|
4632
4636
|
<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>
|
4633
4637
|
<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>
|
@@ -4642,7 +4646,7 @@ after '–').</p>
|
|
4642
4646
|
<div class="method_details ">
|
4643
4647
|
<h3 class="signature " id="checkMissing-instance_method">
|
4644
4648
|
|
4645
|
-
|
4649
|
+
#<strong>checkMissing</strong> ⇒ <tt>Object</tt>
|
4646
4650
|
|
4647
4651
|
|
4648
4652
|
|
@@ -4679,31 +4683,6 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4679
4683
|
<pre class="lines">
|
4680
4684
|
|
4681
4685
|
|
4682
|
-
1466
|
4683
|
-
1467
|
4684
|
-
1468
|
4685
|
-
1469
|
4686
|
-
1470
|
4687
|
-
1471
|
4688
|
-
1472
|
4689
|
-
1473
|
4690
|
-
1474
|
4691
|
-
1475
|
4692
|
-
1476
|
4693
|
-
1477
|
4694
|
-
1478
|
4695
|
-
1479
|
4696
|
-
1480
|
4697
|
-
1481
|
4698
|
-
1482
|
4699
|
-
1483
|
4700
|
-
1484
|
4701
|
-
1485
|
4702
|
-
1486
|
4703
|
-
1487
|
4704
|
-
1488
|
4705
|
-
1489
|
4706
|
-
1490
|
4707
4686
|
1491
|
4708
4687
|
1492
|
4709
4688
|
1493
|
@@ -4730,10 +4709,35 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4730
4709
|
1514
|
4731
4710
|
1515
|
4732
4711
|
1516
|
4733
|
-
1517
|
4712
|
+
1517
|
4713
|
+
1518
|
4714
|
+
1519
|
4715
|
+
1520
|
4716
|
+
1521
|
4717
|
+
1522
|
4718
|
+
1523
|
4719
|
+
1524
|
4720
|
+
1525
|
4721
|
+
1526
|
4722
|
+
1527
|
4723
|
+
1528
|
4724
|
+
1529
|
4725
|
+
1530
|
4726
|
+
1531
|
4727
|
+
1532
|
4728
|
+
1533
|
4729
|
+
1534
|
4730
|
+
1535
|
4731
|
+
1536
|
4732
|
+
1537
|
4733
|
+
1538
|
4734
|
+
1539
|
4735
|
+
1540
|
4736
|
+
1541
|
4737
|
+
1542</pre>
|
4734
4738
|
</td>
|
4735
4739
|
<td>
|
4736
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4740
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1491</span>
|
4737
4741
|
|
4738
4742
|
<span class='kw'>def</span> <span class='id identifier rubyid_checkMissing'>checkMissing</span>
|
4739
4743
|
|
@@ -4755,7 +4759,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4755
4759
|
</span> <span class='ivar'>@subopt</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>
|
4756
4760
|
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:opt</span> <span class='rparen'>)</span>
|
4757
4761
|
<span class='kw'>unless</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_given'>given</span>
|
4758
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>MissingArgument</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
4762
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="Opt/MissingArgument.html" title="Como::Opt::MissingArgument (class)">MissingArgument</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
4759
4763
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Option \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_opt'>opt</span><span class='embexpr_end'>}</span><span class='tstring_content'>\" missing for \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cmd'>cmd</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
4760
4764
|
<span class='kw'>self</span> <span class='rparen'>)</span>
|
4761
4765
|
<span class='kw'>end</span>
|
@@ -4782,7 +4786,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4782
4786
|
<span class='kw'>end</span>
|
4783
4787
|
|
4784
4788
|
<span class='comment'># If no subcmds are given, issue error.
|
4785
|
-
</span> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>MissingArgument</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
4789
|
+
</span> <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="Opt/MissingArgument.html" title="Como::Opt::MissingArgument (class)">MissingArgument</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
4786
4790
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Subcommand required for \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cmd'>cmd</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
4787
4791
|
<span class='kw'>self</span> <span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_subcmdMissing'>subcmdMissing</span>
|
4788
4792
|
|
@@ -4795,7 +4799,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4795
4799
|
<div class="method_details ">
|
4796
4800
|
<h3 class="signature " id="checkRule-instance_method">
|
4797
4801
|
|
4798
|
-
|
4802
|
+
#<strong>checkRule</strong> ⇒ <tt>Object</tt>
|
4799
4803
|
|
4800
4804
|
|
4801
4805
|
|
@@ -4818,35 +4822,35 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4818
4822
|
<pre class="lines">
|
4819
4823
|
|
4820
4824
|
|
4821
|
-
|
4822
|
-
|
4823
|
-
|
4824
|
-
|
4825
|
-
|
4826
|
-
|
4827
|
-
|
4828
|
-
|
4829
|
-
|
4830
|
-
|
4831
|
-
|
4832
|
-
|
4833
|
-
|
4834
|
-
|
4835
|
-
|
4836
|
-
|
4825
|
+
1547
|
4826
|
+
1548
|
4827
|
+
1549
|
4828
|
+
1550
|
4829
|
+
1551
|
4830
|
+
1552
|
4831
|
+
1553
|
4832
|
+
1554
|
4833
|
+
1555
|
4834
|
+
1556
|
4835
|
+
1557
|
4836
|
+
1558
|
4837
|
+
1559
|
4838
|
+
1560
|
4839
|
+
1561
|
4840
|
+
1562</pre>
|
4837
4841
|
</td>
|
4838
4842
|
<td>
|
4839
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4843
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1547</span>
|
4840
4844
|
|
4841
4845
|
<span class='kw'>def</span> <span class='id identifier rubyid_checkRule'>checkRule</span>
|
4842
4846
|
|
4843
4847
|
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='ivar'>@rules</span>
|
4844
4848
|
|
4845
4849
|
<span class='kw'>begin</span>
|
4846
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Opt</span><span class='op'>::</span><span class='const'>InvalidOption</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Option combination mismatch!</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='kw'>self</span> <span class='rparen'>)</span> <span class='kw'>unless</span>
|
4847
|
-
<span class='const'>RuleCheck</span><span class='period'>.</span><span class='id identifier rubyid_check'>check</span><span class='lparen'>(</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='op'>&</span><span class='ivar'>@rules</span> <span class='rparen'>)</span>
|
4850
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Option combination mismatch!</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='kw'>self</span> <span class='rparen'>)</span> <span class='kw'>unless</span>
|
4851
|
+
<span class='const'><span class='object_link'><a href="RuleCheck.html" title="Como::RuleCheck (class)">RuleCheck</a></span></span><span class='period'>.</span><span class='id identifier rubyid_check'><span class='object_link'><a href="RuleCheck.html#check-class_method" title="Como::RuleCheck.check (method)">check</a></span></span><span class='lparen'>(</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='op'>&</span><span class='ivar'>@rules</span> <span class='rparen'>)</span>
|
4848
4852
|
|
4849
|
-
<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>
|
4853
|
+
<span class='kw'>rescue</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Opt/MissingArgument.html" title="Como::Opt::MissingArgument (class)">MissingArgument</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span> <span class='op'>=></span> <span class='id identifier rubyid_err'>err</span>
|
4850
4854
|
<span class='cvar'>@@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span>
|
4851
4855
|
<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>
|
4852
4856
|
|
@@ -4862,7 +4866,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4862
4866
|
<div class="method_details ">
|
4863
4867
|
<h3 class="signature " id="cmdline-instance_method">
|
4864
4868
|
|
4865
|
-
|
4869
|
+
#<strong>cmdline</strong> ⇒ <tt>Object</tt>
|
4866
4870
|
|
4867
4871
|
|
4868
4872
|
|
@@ -4885,31 +4889,6 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4885
4889
|
<pre class="lines">
|
4886
4890
|
|
4887
4891
|
|
4888
|
-
1832
|
4889
|
-
1833
|
4890
|
-
1834
|
4891
|
-
1835
|
4892
|
-
1836
|
4893
|
-
1837
|
4894
|
-
1838
|
4895
|
-
1839
|
4896
|
-
1840
|
4897
|
-
1841
|
4898
|
-
1842
|
4899
|
-
1843
|
4900
|
-
1844
|
4901
|
-
1845
|
4902
|
-
1846
|
4903
|
-
1847
|
4904
|
-
1848
|
4905
|
-
1849
|
4906
|
-
1850
|
4907
|
-
1851
|
4908
|
-
1852
|
4909
|
-
1853
|
4910
|
-
1854
|
4911
|
-
1855
|
4912
|
-
1856
|
4913
4892
|
1857
|
4914
4893
|
1858
|
4915
4894
|
1859
|
@@ -4927,10 +4906,37 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4927
4906
|
1871
|
4928
4907
|
1872
|
4929
4908
|
1873
|
4930
|
-
1874
|
4909
|
+
1874
|
4910
|
+
1875
|
4911
|
+
1876
|
4912
|
+
1877
|
4913
|
+
1878
|
4914
|
+
1879
|
4915
|
+
1880
|
4916
|
+
1881
|
4917
|
+
1882
|
4918
|
+
1883
|
4919
|
+
1884
|
4920
|
+
1885
|
4921
|
+
1886
|
4922
|
+
1887
|
4923
|
+
1888
|
4924
|
+
1889
|
4925
|
+
1890
|
4926
|
+
1891
|
4927
|
+
1892
|
4928
|
+
1893
|
4929
|
+
1894
|
4930
|
+
1895
|
4931
|
+
1896
|
4932
|
+
1897
|
4933
|
+
1898
|
4934
|
+
1899
|
4935
|
+
1900
|
4936
|
+
1901</pre>
|
4931
4937
|
</td>
|
4932
4938
|
<td>
|
4933
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
4939
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1857</span>
|
4934
4940
|
|
4935
4941
|
<span class='kw'>def</span> <span class='id identifier rubyid_cmdline'>cmdline</span>
|
4936
4942
|
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -4942,6 +4948,8 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4942
4948
|
<span class='id identifier rubyid_prural'>prural</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
4943
4949
|
<span class='kw'>if</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:none</span> <span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:many</span> <span class='rparen'>)</span>
|
4944
4950
|
<span class='id identifier rubyid_prural'>prural</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*</span><span class='tstring_end'>"</span></span>
|
4951
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:one</span> <span class='rparen'>)</span> <span class='op'>&&</span> <span class='op'>!</span><span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:many</span> <span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:repeat</span> <span class='rparen'>)</span>
|
4952
|
+
<span class='id identifier rubyid_prural'>prural</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>#</span><span class='tstring_end'>"</span></span>
|
4945
4953
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:one</span> <span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:many</span> <span class='rparen'>)</span>
|
4946
4954
|
<span class='id identifier rubyid_prural'>prural</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>+</span><span class='tstring_end'>"</span></span>
|
4947
4955
|
<span class='kw'>else</span>
|
@@ -4983,7 +4991,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
4983
4991
|
<div class="method_details ">
|
4984
4992
|
<h3 class="signature " id="default-instance_method">
|
4985
4993
|
|
4986
|
-
|
4994
|
+
#<strong>default</strong> ⇒ <tt>Object</tt>
|
4987
4995
|
|
4988
4996
|
|
4989
4997
|
|
@@ -5006,12 +5014,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5006
5014
|
<pre class="lines">
|
5007
5015
|
|
5008
5016
|
|
5009
|
-
|
5010
|
-
|
5011
|
-
|
5017
|
+
1711
|
5018
|
+
1712
|
5019
|
+
1713</pre>
|
5012
5020
|
</td>
|
5013
5021
|
<td>
|
5014
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5022
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1711</span>
|
5015
5023
|
|
5016
5024
|
<span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
5017
5025
|
<span class='id identifier rubyid_argByName'>argByName</span><span class='lparen'>(</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
@@ -5024,7 +5032,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5024
5032
|
<div class="method_details ">
|
5025
5033
|
<h3 class="signature " id="each-instance_method">
|
5026
5034
|
|
5027
|
-
|
5035
|
+
#<strong>each</strong>(&blk) ⇒ <tt>Object</tt>
|
5028
5036
|
|
5029
5037
|
|
5030
5038
|
|
@@ -5047,14 +5055,14 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5047
5055
|
<pre class="lines">
|
5048
5056
|
|
5049
5057
|
|
5050
|
-
|
5051
|
-
|
5052
|
-
|
5053
|
-
|
5054
|
-
|
5058
|
+
1613
|
5059
|
+
1614
|
5060
|
+
1615
|
5061
|
+
1616
|
5062
|
+
1617</pre>
|
5055
5063
|
</td>
|
5056
5064
|
<td>
|
5057
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5065
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1613</span>
|
5058
5066
|
|
5059
5067
|
<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>
|
5060
5068
|
<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>
|
@@ -5069,7 +5077,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5069
5077
|
<div class="method_details ">
|
5070
5078
|
<h3 class="signature " id="each_given-instance_method">
|
5071
5079
|
|
5072
|
-
|
5080
|
+
#<strong>each_given</strong>(&blk) ⇒ <tt>Object</tt>
|
5073
5081
|
|
5074
5082
|
|
5075
5083
|
|
@@ -5092,14 +5100,14 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5092
5100
|
<pre class="lines">
|
5093
5101
|
|
5094
5102
|
|
5095
|
-
|
5096
|
-
|
5097
|
-
|
5098
|
-
|
5099
|
-
|
5103
|
+
1621
|
5104
|
+
1622
|
5105
|
+
1623
|
5106
|
+
1624
|
5107
|
+
1625</pre>
|
5100
5108
|
</td>
|
5101
5109
|
<td>
|
5102
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5110
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1621</span>
|
5103
5111
|
|
5104
5112
|
<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>
|
5105
5113
|
<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>
|
@@ -5114,7 +5122,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5114
5122
|
<div class="method_details ">
|
5115
5123
|
<h3 class="signature " id="error-instance_method">
|
5116
5124
|
|
5117
|
-
|
5125
|
+
#<strong>error</strong>(str, nl = false) ⇒ <tt>Object</tt>
|
5118
5126
|
|
5119
5127
|
|
5120
5128
|
|
@@ -5175,17 +5183,17 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5175
5183
|
<pre class="lines">
|
5176
5184
|
|
5177
5185
|
|
5178
|
-
|
5179
|
-
|
5180
|
-
|
5181
|
-
|
5186
|
+
1983
|
5187
|
+
1984
|
5188
|
+
1985
|
5189
|
+
1986</pre>
|
5182
5190
|
</td>
|
5183
5191
|
<td>
|
5184
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5192
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1983</span>
|
5185
5193
|
|
5186
5194
|
<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>
|
5187
5195
|
<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>
|
5188
|
-
<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='embexpr_end'>}</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='embexpr_end'>}</span><span class='tstring_content'> error: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_str'>str</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
5196
|
+
<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='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_progname'><span class='object_link'><a href="#progname-class_method" title="Como::Opt.progname (method)">progname</a></span></span><span class='embexpr_end'>}</span><span class='tstring_content'> error: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_str'>str</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
5189
5197
|
<span class='kw'>end</span></pre>
|
5190
5198
|
</td>
|
5191
5199
|
</tr>
|
@@ -5195,7 +5203,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5195
5203
|
<div class="method_details ">
|
5196
5204
|
<h3 class="signature " id="errornl-instance_method">
|
5197
5205
|
|
5198
|
-
|
5206
|
+
#<strong>errornl</strong>(str) ⇒ <tt>Object</tt>
|
5199
5207
|
|
5200
5208
|
|
5201
5209
|
|
@@ -5218,12 +5226,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5218
5226
|
<pre class="lines">
|
5219
5227
|
|
5220
5228
|
|
5221
|
-
|
5222
|
-
|
5223
|
-
|
5229
|
+
1990
|
5230
|
+
1991
|
5231
|
+
1992</pre>
|
5224
5232
|
</td>
|
5225
5233
|
<td>
|
5226
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5234
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1990</span>
|
5227
5235
|
|
5228
5236
|
<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>
|
5229
5237
|
<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>
|
@@ -5236,7 +5244,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5236
5244
|
<div class="method_details ">
|
5237
5245
|
<h3 class="signature " id="evalCheck-instance_method">
|
5238
5246
|
|
5239
|
-
|
5247
|
+
#<strong>evalCheck</strong>(&check) ⇒ <tt>Object</tt>
|
5240
5248
|
|
5241
5249
|
|
5242
5250
|
|
@@ -5259,15 +5267,15 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5259
5267
|
<pre class="lines">
|
5260
5268
|
|
5261
5269
|
|
5262
|
-
|
5263
|
-
|
5264
|
-
|
5270
|
+
2014
|
5271
|
+
2015
|
5272
|
+
2016</pre>
|
5265
5273
|
</td>
|
5266
5274
|
<td>
|
5267
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5275
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2014</span>
|
5268
5276
|
|
5269
5277
|
<span class='kw'>def</span> <span class='id identifier rubyid_evalCheck'>evalCheck</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_check'>check</span> <span class='rparen'>)</span>
|
5270
|
-
<span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='op'>&</span><span class='id identifier rubyid_check'>check</span>
|
5278
|
+
<span class='id identifier rubyid_instance_eval'>instance_eval</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_check'>check</span> <span class='rparen'>)</span>
|
5271
5279
|
<span class='kw'>end</span></pre>
|
5272
5280
|
</td>
|
5273
5281
|
</tr>
|
@@ -5277,7 +5285,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5277
5285
|
<div class="method_details ">
|
5278
5286
|
<h3 class="signature " id="fatal-instance_method">
|
5279
5287
|
|
5280
|
-
|
5288
|
+
#<strong>fatal</strong>(str) ⇒ <tt>Object</tt>
|
5281
5289
|
|
5282
5290
|
|
5283
5291
|
|
@@ -5300,13 +5308,13 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5300
5308
|
<pre class="lines">
|
5301
5309
|
|
5302
5310
|
|
5303
|
-
|
5304
|
-
|
5305
|
-
|
5306
|
-
|
5311
|
+
1996
|
5312
|
+
1997
|
5313
|
+
1998
|
5314
|
+
1999</pre>
|
5307
5315
|
</td>
|
5308
5316
|
<td>
|
5309
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5317
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1996</span>
|
5310
5318
|
|
5311
5319
|
<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>
|
5312
5320
|
<span class='id identifier rubyid_error'>error</span><span class='lparen'>(</span> <span class='id identifier rubyid_str'>str</span> <span class='rparen'>)</span>
|
@@ -5320,7 +5328,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5320
5328
|
<div class="method_details ">
|
5321
5329
|
<h3 class="signature " id="findOpt-instance_method">
|
5322
5330
|
|
5323
|
-
|
5331
|
+
#<strong>findOpt</strong>(str) ⇒ <tt>Object</tt>
|
5324
5332
|
|
5325
5333
|
|
5326
5334
|
|
@@ -5343,20 +5351,20 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5343
5351
|
<pre class="lines">
|
5344
5352
|
|
5345
5353
|
|
5346
|
-
|
5347
|
-
|
5348
|
-
|
5349
|
-
|
5350
|
-
|
5351
|
-
|
5352
|
-
|
5353
|
-
|
5354
|
-
|
5355
|
-
|
5356
|
-
|
5354
|
+
1930
|
5355
|
+
1931
|
5356
|
+
1932
|
5357
|
+
1933
|
5358
|
+
1934
|
5359
|
+
1935
|
5360
|
+
1936
|
5361
|
+
1937
|
5362
|
+
1938
|
5363
|
+
1939
|
5364
|
+
1940</pre>
|
5357
5365
|
</td>
|
5358
5366
|
<td>
|
5359
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5367
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1930</span>
|
5360
5368
|
|
5361
5369
|
<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>
|
5362
5370
|
<span class='kw'>if</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>==</span> <span class='kw'>nil</span>
|
@@ -5377,7 +5385,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5377
5385
|
<div class="method_details ">
|
5378
5386
|
<h3 class="signature " id="givenCount-instance_method">
|
5379
5387
|
|
5380
|
-
|
5388
|
+
#<strong>givenCount</strong> ⇒ <tt>Object</tt>
|
5381
5389
|
|
5382
5390
|
|
5383
5391
|
|
@@ -5400,16 +5408,16 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5400
5408
|
<pre class="lines">
|
5401
5409
|
|
5402
5410
|
|
5403
|
-
|
5404
|
-
|
5405
|
-
|
5406
|
-
|
5407
|
-
|
5408
|
-
|
5409
|
-
|
5411
|
+
1629
|
5412
|
+
1630
|
5413
|
+
1631
|
5414
|
+
1632
|
5415
|
+
1633
|
5416
|
+
1634
|
5417
|
+
1635</pre>
|
5410
5418
|
</td>
|
5411
5419
|
<td>
|
5412
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5420
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1629</span>
|
5413
5421
|
|
5414
5422
|
<span class='kw'>def</span> <span class='id identifier rubyid_givenCount'>givenCount</span>
|
5415
5423
|
<span class='id identifier rubyid_cnt'>cnt</span> <span class='op'>=</span> <span class='int'>0</span>
|
@@ -5426,7 +5434,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5426
5434
|
<div class="method_details ">
|
5427
5435
|
<h3 class="signature " id="givenSubcmd-instance_method">
|
5428
5436
|
|
5429
|
-
|
5437
|
+
#<strong>givenSubcmd</strong> ⇒ <tt>Object</tt>
|
5430
5438
|
|
5431
5439
|
|
5432
5440
|
|
@@ -5449,12 +5457,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5449
5457
|
<pre class="lines">
|
5450
5458
|
|
5451
5459
|
|
5452
|
-
|
5453
|
-
|
5454
|
-
|
5460
|
+
1687
|
5461
|
+
1688
|
5462
|
+
1689</pre>
|
5455
5463
|
</td>
|
5456
5464
|
<td>
|
5457
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5465
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1687</span>
|
5458
5466
|
|
5459
5467
|
<span class='kw'>def</span> <span class='id identifier rubyid_givenSubcmd'>givenSubcmd</span>
|
5460
5468
|
<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>
|
@@ -5467,7 +5475,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5467
5475
|
<div class="method_details ">
|
5468
5476
|
<h3 class="signature " id="hasSwitchStyleDoc-instance_method">
|
5469
5477
|
|
5470
|
-
|
5478
|
+
#<strong>hasSwitchStyleDoc</strong> ⇒ <tt>Object</tt>
|
5471
5479
|
|
5472
5480
|
|
5473
5481
|
|
@@ -5490,17 +5498,17 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5490
5498
|
<pre class="lines">
|
5491
5499
|
|
5492
5500
|
|
5493
|
-
|
5494
|
-
|
5495
|
-
|
5496
|
-
|
5497
|
-
|
5498
|
-
|
5499
|
-
|
5500
|
-
|
5501
|
+
1763
|
5502
|
+
1764
|
5503
|
+
1765
|
5504
|
+
1766
|
5505
|
+
1767
|
5506
|
+
1768
|
5507
|
+
1769
|
5508
|
+
1770</pre>
|
5501
5509
|
</td>
|
5502
5510
|
<td>
|
5503
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5511
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1763</span>
|
5504
5512
|
|
5505
5513
|
<span class='kw'>def</span> <span class='id identifier rubyid_hasSwitchStyleDoc'>hasSwitchStyleDoc</span>
|
5506
5514
|
<span class='kw'>if</span> <span class='lparen'>(</span> <span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:none</span> <span class='rparen'>)</span> <span class='op'>&&</span> <span class='op'>!</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:many</span> <span class='rparen'>)</span> <span class='rparen'>)</span> <span class='op'>||</span>
|
@@ -5518,7 +5526,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5518
5526
|
<div class="method_details ">
|
5519
5527
|
<h3 class="signature " id="opt-instance_method">
|
5520
5528
|
|
5521
|
-
|
5529
|
+
#<strong>opt</strong> ⇒ <tt>Object</tt>
|
5522
5530
|
|
5523
5531
|
|
5524
5532
|
|
@@ -5541,12 +5549,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5541
5549
|
<pre class="lines">
|
5542
5550
|
|
5543
5551
|
|
5544
|
-
|
5545
|
-
|
5546
|
-
|
5552
|
+
1601
|
5553
|
+
1602
|
5554
|
+
1603</pre>
|
5547
5555
|
</td>
|
5548
5556
|
<td>
|
5549
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5557
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1601</span>
|
5550
5558
|
|
5551
5559
|
<span class='kw'>def</span> <span class='id identifier rubyid_opt'>opt</span>
|
5552
5560
|
<span class='ivar'>@shortOpt</span> <span class='op'>?</span> <span class='ivar'>@shortOpt</span> <span class='op'>:</span> <span class='ivar'>@longOpt</span>
|
@@ -5559,7 +5567,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5559
5567
|
<div class="method_details ">
|
5560
5568
|
<h3 class="signature " id="params-instance_method">
|
5561
5569
|
|
5562
|
-
|
5570
|
+
#<strong>params</strong> ⇒ <tt>Hash</tt>
|
5563
5571
|
|
5564
5572
|
|
5565
5573
|
|
@@ -5570,7 +5578,8 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5570
5578
|
|
5571
5579
|
<p>Returns Hash of option value parameters. Example command line content:</p>
|
5572
5580
|
|
5573
|
-
<pre class="code ruby"><code class="ruby">-p rounds=10 length=5
|
5581
|
+
<pre class="code ruby"><code class="ruby">-p rounds=10 length=5
|
5582
|
+
</code></pre>
|
5574
5583
|
|
5575
5584
|
<p>Option value content in this case would be (Array of param settings):</p>
|
5576
5585
|
|
@@ -5607,18 +5616,18 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5607
5616
|
<pre class="lines">
|
5608
5617
|
|
5609
5618
|
|
5610
|
-
|
5611
|
-
|
5612
|
-
|
5613
|
-
|
5614
|
-
|
5615
|
-
|
5616
|
-
|
5617
|
-
|
5618
|
-
|
5619
|
+
1699
|
5620
|
+
1700
|
5621
|
+
1701
|
5622
|
+
1702
|
5623
|
+
1703
|
5624
|
+
1704
|
5625
|
+
1705
|
5626
|
+
1706
|
5627
|
+
1707</pre>
|
5619
5628
|
</td>
|
5620
5629
|
<td>
|
5621
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5630
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1699</span>
|
5622
5631
|
|
5623
5632
|
<span class='kw'>def</span> <span class='id identifier rubyid_params'>params</span>
|
5624
5633
|
<span class='id identifier rubyid_map'>map</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -5637,7 +5646,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5637
5646
|
<div class="method_details ">
|
5638
5647
|
<h3 class="signature " id="parse-instance_method">
|
5639
5648
|
|
5640
|
-
|
5649
|
+
#<strong>parse</strong>(args, checkInvalids = true) ⇒ <tt>Object</tt>
|
5641
5650
|
|
5642
5651
|
|
5643
5652
|
|
@@ -5660,25 +5669,6 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5660
5669
|
<pre class="lines">
|
5661
5670
|
|
5662
5671
|
|
5663
|
-
1330
|
5664
|
-
1331
|
5665
|
-
1332
|
5666
|
-
1333
|
5667
|
-
1334
|
5668
|
-
1335
|
5669
|
-
1336
|
5670
|
-
1337
|
5671
|
-
1338
|
5672
|
-
1339
|
5673
|
-
1340
|
5674
|
-
1341
|
5675
|
-
1342
|
5676
|
-
1343
|
5677
|
-
1344
|
5678
|
-
1345
|
5679
|
-
1346
|
5680
|
-
1347
|
5681
|
-
1348
|
5682
5672
|
1349
|
5683
5673
|
1350
|
5684
5674
|
1351
|
@@ -5790,10 +5780,35 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5790
5780
|
1457
|
5791
5781
|
1458
|
5792
5782
|
1459
|
5793
|
-
1460
|
5783
|
+
1460
|
5784
|
+
1461
|
5785
|
+
1462
|
5786
|
+
1463
|
5787
|
+
1464
|
5788
|
+
1465
|
5789
|
+
1466
|
5790
|
+
1467
|
5791
|
+
1468
|
5792
|
+
1469
|
5793
|
+
1470
|
5794
|
+
1471
|
5795
|
+
1472
|
5796
|
+
1473
|
5797
|
+
1474
|
5798
|
+
1475
|
5799
|
+
1476
|
5800
|
+
1477
|
5801
|
+
1478
|
5802
|
+
1479
|
5803
|
+
1480
|
5804
|
+
1481
|
5805
|
+
1482
|
5806
|
+
1483
|
5807
|
+
1484
|
5808
|
+
1485</pre>
|
5794
5809
|
</td>
|
5795
5810
|
<td>
|
5796
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5811
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1349</span>
|
5797
5812
|
|
5798
5813
|
<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>
|
5799
5814
|
|
@@ -5805,7 +5820,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5805
5820
|
|
5806
5821
|
<span class='comment'># Rest of the args do not belong to this program.
|
5807
5822
|
</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span>
|
5808
|
-
<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> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_rest'>rest</span>
|
5823
|
+
<span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_main'><span class='object_link'><a href="#main-class_method" title="Como::Opt.main (method)">main</a></span></span><span class='period'>.</span><span class='id identifier rubyid_external'>external</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_rest'>rest</span>
|
5809
5824
|
<span class='kw'>break</span>
|
5810
5825
|
|
5811
5826
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_isOpt'>isOpt</span>
|
@@ -5815,13 +5830,13 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5815
5830
|
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_o'>o</span>
|
5816
5831
|
<span class='kw'>if</span> <span class='id identifier rubyid_checkInvalids'>checkInvalids</span>
|
5817
5832
|
<span class='id identifier rubyid_raise'>raise</span> \
|
5818
|
-
<span class='const'>InvalidOption</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown option \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
5833
|
+
<span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown option \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
5819
5834
|
<span class='kw'>self</span> <span class='rparen'>)</span>
|
5820
5835
|
<span class='kw'>else</span>
|
5821
5836
|
<span class='id identifier rubyid_o'>o</span> <span class='op'>=</span> <span class='id identifier rubyid_findOpt'>findOpt</span><span class='lparen'>(</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
5822
5837
|
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_o'>o</span>
|
5823
5838
|
<span class='id identifier rubyid_raise'>raise</span> \
|
5824
|
-
<span class='const'>InvalidOption</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
5839
|
+
<span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
5825
5840
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>No default option specified to allow \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
5826
5841
|
<span class='kw'>self</span> <span class='rparen'>)</span>
|
5827
5842
|
<span class='kw'>else</span>
|
@@ -5838,12 +5853,19 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5838
5853
|
<span class='kw'>if</span> <span class='lparen'>(</span> <span class='op'>!</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span> <span class='op'>||</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_isOpt'>isOpt</span> <span class='rparen'>)</span> <span class='op'>&&</span>
|
5839
5854
|
<span class='op'>!</span><span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:none</span> <span class='rparen'>)</span>
|
5840
5855
|
|
5841
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>MissingArgument</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
5856
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="Opt/MissingArgument.html" title="Como::Opt::MissingArgument (class)">MissingArgument</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
5842
5857
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>No argument given for \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_opt'>opt</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
5843
5858
|
<span class='kw'>self</span> <span class='rparen'>)</span>
|
5844
5859
|
|
5845
5860
|
<span class='kw'>else</span>
|
5846
5861
|
|
5862
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_given'>given</span> <span class='op'>&&</span> <span class='op'>!</span><span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:repeat</span> <span class='rparen'>)</span>
|
5863
|
+
<span class='id identifier rubyid_raise'>raise</span> \
|
5864
|
+
<span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
5865
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Option specified too multiple times (\"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>\")...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
5866
|
+
<span class='kw'>self</span> <span class='rparen'>)</span>
|
5867
|
+
<span class='kw'>end</span>
|
5868
|
+
|
5847
5869
|
<span class='kw'>if</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:many</span> <span class='rparen'>)</span>
|
5848
5870
|
|
5849
5871
|
<span class='comment'># Get all argument for multi-option.
|
@@ -5857,14 +5879,13 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5857
5879
|
|
5858
5880
|
<span class='comment'># Get one argument for single-option.
|
5859
5881
|
</span>
|
5860
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier
|
5861
|
-
<span class='id identifier
|
5862
|
-
<span class='
|
5863
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Too many arguments for option (\"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>\")...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
5864
|
-
<span class='kw'>self</span> <span class='rparen'>)</span>
|
5882
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='symbol'>:repeat</span> <span class='rparen'>)</span>
|
5883
|
+
<span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='kw'>if</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>
|
5884
|
+
<span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_toValue'>toValue</span>
|
5865
5885
|
<span class='kw'>else</span>
|
5866
5886
|
<span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_toValue'>toValue</span>
|
5867
5887
|
<span class='kw'>end</span>
|
5888
|
+
|
5868
5889
|
<span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span>
|
5869
5890
|
<span class='kw'>end</span>
|
5870
5891
|
<span class='kw'>end</span>
|
@@ -5874,7 +5895,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5874
5895
|
<span class='kw'>else</span>
|
5875
5896
|
|
5876
5897
|
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_o'>o</span>
|
5877
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>InvalidOption</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>No valid options specified...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
5898
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>No valid options specified...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
5878
5899
|
<span class='kw'>self</span> <span class='rparen'>)</span>
|
5879
5900
|
<span class='kw'>else</span>
|
5880
5901
|
<span class='id identifier rubyid_o'>o</span><span class='period'>.</span><span class='id identifier rubyid_given'>given</span> <span class='op'>=</span> <span class='kw'>true</span>
|
@@ -5896,12 +5917,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5896
5917
|
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_o'>o</span>
|
5897
5918
|
<span class='kw'>if</span> <span class='ivar'>@subcmd</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span>
|
5898
5919
|
<span class='id identifier rubyid_raise'>raise</span> \
|
5899
|
-
<span class='const'>InvalidOption</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
5920
|
+
<span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
5900
5921
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown subcmd: \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
5901
5922
|
<span class='kw'>self</span> <span class='rparen'>)</span>
|
5902
5923
|
<span class='kw'>else</span>
|
5903
5924
|
<span class='id identifier rubyid_raise'>raise</span> \
|
5904
|
-
<span class='const'>InvalidOption</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
5925
|
+
<span class='const'><span class='object_link'><a href="Opt/InvalidOption.html" title="Como::Opt::InvalidOption (class)">InvalidOption</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Opt/ErrorWithData.html#initialize-instance_method" title="Como::Opt::ErrorWithData#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
5905
5926
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>No default option specified to allow \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
5906
5927
|
<span class='kw'>self</span> <span class='rparen'>)</span>
|
5907
5928
|
<span class='kw'>end</span>
|
@@ -5934,7 +5955,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5934
5955
|
<div class="method_details ">
|
5935
5956
|
<h3 class="signature " id="prim?-instance_method">
|
5936
5957
|
|
5937
|
-
|
5958
|
+
#<strong>prim?</strong>(prim) ⇒ <tt>Boolean</tt>
|
5938
5959
|
|
5939
5960
|
|
5940
5961
|
|
@@ -5970,12 +5991,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5970
5991
|
<pre class="lines">
|
5971
5992
|
|
5972
5993
|
|
5973
|
-
|
5974
|
-
|
5975
|
-
|
5994
|
+
1757
|
5995
|
+
1758
|
5996
|
+
1759</pre>
|
5976
5997
|
</td>
|
5977
5998
|
<td>
|
5978
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
5999
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1757</span>
|
5979
6000
|
|
5980
6001
|
<span class='kw'>def</span> <span class='id identifier rubyid_prim?'>prim?</span><span class='lparen'>(</span> <span class='id identifier rubyid_prim'>prim</span> <span class='rparen'>)</span>
|
5981
6002
|
<span class='ivar'>@type</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span> <span class='id identifier rubyid_prim'>prim</span> <span class='rparen'>)</span>
|
@@ -5988,7 +6009,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
5988
6009
|
<div class="method_details ">
|
5989
6010
|
<h3 class="signature " id="setOptionSubcmd-instance_method">
|
5990
6011
|
|
5991
|
-
|
6012
|
+
#<strong>setOptionSubcmd</strong>(opts, subs) ⇒ <tt>Object</tt>
|
5992
6013
|
|
5993
6014
|
|
5994
6015
|
|
@@ -6026,18 +6047,18 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6026
6047
|
<pre class="lines">
|
6027
6048
|
|
6028
6049
|
|
6029
|
-
|
6030
|
-
|
6031
|
-
|
6032
|
-
|
6033
|
-
|
6034
|
-
|
6035
|
-
|
6036
|
-
|
6037
|
-
|
6050
|
+
1254
|
6051
|
+
1255
|
6052
|
+
1256
|
6053
|
+
1257
|
6054
|
+
1258
|
6055
|
+
1259
|
6056
|
+
1260
|
6057
|
+
1261
|
6058
|
+
1262</pre>
|
6038
6059
|
</td>
|
6039
6060
|
<td>
|
6040
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6061
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1254</span>
|
6041
6062
|
|
6042
6063
|
<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>
|
6043
6064
|
<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>
|
@@ -6056,7 +6077,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6056
6077
|
<div class="method_details ">
|
6057
6078
|
<h3 class="signature " id="setRuleCheck-instance_method">
|
6058
6079
|
|
6059
|
-
|
6080
|
+
#<strong>setRuleCheck</strong>(&rule) ⇒ <tt>Object</tt>
|
6060
6081
|
|
6061
6082
|
|
6062
6083
|
|
@@ -6099,12 +6120,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6099
6120
|
<pre class="lines">
|
6100
6121
|
|
6101
6122
|
|
6102
|
-
|
6103
|
-
|
6104
|
-
|
6123
|
+
1294
|
6124
|
+
1295
|
6125
|
+
1296</pre>
|
6105
6126
|
</td>
|
6106
6127
|
<td>
|
6107
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6128
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1294</span>
|
6108
6129
|
|
6109
6130
|
<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>
|
6110
6131
|
<span class='ivar'>@rules</span> <span class='op'>=</span> <span class='id identifier rubyid_rule'>rule</span>
|
@@ -6117,7 +6138,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6117
6138
|
<div class="method_details ">
|
6118
6139
|
<h3 class="signature " id="setUsageFooter-instance_method">
|
6119
6140
|
|
6120
|
-
|
6141
|
+
#<strong>setUsageFooter</strong>(str) ⇒ <tt>Object</tt>
|
6121
6142
|
|
6122
6143
|
|
6123
6144
|
|
@@ -6140,12 +6161,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6140
6161
|
<pre class="lines">
|
6141
6162
|
|
6142
6163
|
|
6143
|
-
|
6144
|
-
|
6145
|
-
|
6164
|
+
1783
|
6165
|
+
1784
|
6166
|
+
1785</pre>
|
6146
6167
|
</td>
|
6147
6168
|
<td>
|
6148
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6169
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1783</span>
|
6149
6170
|
|
6150
6171
|
<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>
|
6151
6172
|
<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>
|
@@ -6158,7 +6179,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6158
6179
|
<div class="method_details ">
|
6159
6180
|
<h3 class="signature " id="setUsageHeader-instance_method">
|
6160
6181
|
|
6161
|
-
|
6182
|
+
#<strong>setUsageHeader</strong>(str) ⇒ <tt>Object</tt>
|
6162
6183
|
|
6163
6184
|
|
6164
6185
|
|
@@ -6181,12 +6202,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6181
6202
|
<pre class="lines">
|
6182
6203
|
|
6183
6204
|
|
6184
|
-
|
6185
|
-
|
6186
|
-
|
6205
|
+
1777
|
6206
|
+
1778
|
6207
|
+
1779</pre>
|
6187
6208
|
</td>
|
6188
6209
|
<td>
|
6189
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6210
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1777</span>
|
6190
6211
|
|
6191
6212
|
<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>
|
6192
6213
|
<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>
|
@@ -6199,7 +6220,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6199
6220
|
<div class="method_details ">
|
6200
6221
|
<h3 class="signature " id="suball-instance_method">
|
6201
6222
|
|
6202
|
-
|
6223
|
+
#<strong>suball</strong> ⇒ <tt>Object</tt>
|
6203
6224
|
|
6204
6225
|
|
6205
6226
|
|
@@ -6222,12 +6243,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6222
6243
|
<pre class="lines">
|
6223
6244
|
|
6224
6245
|
|
6225
|
-
|
6226
|
-
|
6227
|
-
|
6246
|
+
1607
|
6247
|
+
1608
|
6248
|
+
1609</pre>
|
6228
6249
|
</td>
|
6229
6250
|
<td>
|
6230
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6251
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1607</span>
|
6231
6252
|
|
6232
6253
|
<span class='kw'>def</span> <span class='id identifier rubyid_suball'>suball</span>
|
6233
6254
|
<span class='ivar'>@subopt</span> <span class='op'>+</span> <span class='ivar'>@subcmd</span>
|
@@ -6240,7 +6261,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6240
6261
|
<div class="method_details ">
|
6241
6262
|
<h3 class="signature " id="suboptDoc-instance_method">
|
6242
6263
|
|
6243
|
-
|
6264
|
+
#<strong>suboptDoc</strong> ⇒ <tt>Object</tt>
|
6244
6265
|
|
6245
6266
|
|
6246
6267
|
|
@@ -6263,31 +6284,31 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6263
6284
|
<pre class="lines">
|
6264
6285
|
|
6265
6286
|
|
6266
|
-
|
6267
|
-
|
6268
|
-
|
6269
|
-
|
6270
|
-
|
6271
|
-
|
6272
|
-
|
6273
|
-
|
6274
|
-
|
6275
|
-
|
6276
|
-
|
6277
|
-
|
6278
|
-
|
6279
|
-
|
6280
|
-
|
6281
|
-
|
6282
|
-
|
6283
|
-
|
6284
|
-
|
6285
|
-
|
6286
|
-
|
6287
|
-
|
6287
|
+
1905
|
6288
|
+
1906
|
6289
|
+
1907
|
6290
|
+
1908
|
6291
|
+
1909
|
6292
|
+
1910
|
6293
|
+
1911
|
6294
|
+
1912
|
6295
|
+
1913
|
6296
|
+
1914
|
6297
|
+
1915
|
6298
|
+
1916
|
6299
|
+
1917
|
6300
|
+
1918
|
6301
|
+
1919
|
6302
|
+
1920
|
6303
|
+
1921
|
6304
|
+
1922
|
6305
|
+
1923
|
6306
|
+
1924
|
6307
|
+
1925
|
6308
|
+
1926</pre>
|
6288
6309
|
</td>
|
6289
6310
|
<td>
|
6290
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6311
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1905</span>
|
6291
6312
|
|
6292
6313
|
<span class='kw'>def</span> <span class='id identifier rubyid_suboptDoc'>suboptDoc</span>
|
6293
6314
|
|
@@ -6319,7 +6340,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6319
6340
|
<div class="method_details ">
|
6320
6341
|
<h3 class="signature " id="to_hash-instance_method">
|
6321
6342
|
|
6322
|
-
|
6343
|
+
#<strong>to_hash</strong> ⇒ <tt>Object</tt>
|
6323
6344
|
|
6324
6345
|
|
6325
6346
|
|
@@ -6344,19 +6365,19 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6344
6365
|
<pre class="lines">
|
6345
6366
|
|
6346
6367
|
|
6347
|
-
|
6348
|
-
|
6349
|
-
|
6350
|
-
|
6351
|
-
|
6352
|
-
|
6353
|
-
|
6354
|
-
|
6355
|
-
|
6356
|
-
|
6368
|
+
1946
|
6369
|
+
1947
|
6370
|
+
1948
|
6371
|
+
1949
|
6372
|
+
1950
|
6373
|
+
1951
|
6374
|
+
1952
|
6375
|
+
1953
|
6376
|
+
1954
|
6377
|
+
1955</pre>
|
6357
6378
|
</td>
|
6358
6379
|
<td>
|
6359
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6380
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1946</span>
|
6360
6381
|
|
6361
6382
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_hash'>to_hash</span>
|
6362
6383
|
<span class='id identifier rubyid_h'>h</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -6376,7 +6397,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6376
6397
|
<div class="method_details ">
|
6377
6398
|
<h3 class="signature " id="to_hopt-instance_method">
|
6378
6399
|
|
6379
|
-
|
6400
|
+
#<strong>to_hopt</strong> ⇒ <tt>Object</tt>
|
6380
6401
|
|
6381
6402
|
|
6382
6403
|
|
@@ -6401,25 +6422,25 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6401
6422
|
<pre class="lines">
|
6402
6423
|
|
6403
6424
|
|
6404
|
-
|
6405
|
-
|
6406
|
-
|
6407
|
-
|
6408
|
-
|
6409
|
-
|
6410
|
-
|
6411
|
-
|
6412
|
-
|
6413
|
-
|
6414
|
-
|
6415
|
-
|
6416
|
-
|
6417
|
-
|
6418
|
-
|
6419
|
-
|
6425
|
+
1961
|
6426
|
+
1962
|
6427
|
+
1963
|
6428
|
+
1964
|
6429
|
+
1965
|
6430
|
+
1966
|
6431
|
+
1967
|
6432
|
+
1968
|
6433
|
+
1969
|
6434
|
+
1970
|
6435
|
+
1971
|
6436
|
+
1972
|
6437
|
+
1973
|
6438
|
+
1974
|
6439
|
+
1975
|
6440
|
+
1976</pre>
|
6420
6441
|
</td>
|
6421
6442
|
<td>
|
6422
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6443
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1961</span>
|
6423
6444
|
|
6424
6445
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_hopt'>to_hopt</span>
|
6425
6446
|
<span class='id identifier rubyid_h'>h</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -6445,7 +6466,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6445
6466
|
<div class="method_details ">
|
6446
6467
|
<h3 class="signature " id="usage-instance_method">
|
6447
6468
|
|
6448
|
-
|
6469
|
+
#<strong>usage</strong>(doExit = nil, ruleHelp = nil) ⇒ <tt>Object</tt>
|
6449
6470
|
|
6450
6471
|
|
6451
6472
|
|
@@ -6508,23 +6529,23 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6508
6529
|
<pre class="lines">
|
6509
6530
|
|
6510
6531
|
|
6511
|
-
|
6512
|
-
|
6513
|
-
|
6514
|
-
|
6515
|
-
|
6516
|
-
|
6517
|
-
|
6518
|
-
|
6519
|
-
|
6520
|
-
|
6521
|
-
|
6522
|
-
|
6523
|
-
|
6524
|
-
|
6532
|
+
1796
|
6533
|
+
1797
|
6534
|
+
1798
|
6535
|
+
1799
|
6536
|
+
1800
|
6537
|
+
1801
|
6538
|
+
1802
|
6539
|
+
1803
|
6540
|
+
1804
|
6541
|
+
1805
|
6542
|
+
1806
|
6543
|
+
1807
|
6544
|
+
1808
|
6545
|
+
1809</pre>
|
6525
6546
|
</td>
|
6526
6547
|
<td>
|
6527
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6548
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1796</span>
|
6528
6549
|
|
6529
6550
|
<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>
|
6530
6551
|
|
@@ -6535,7 +6556,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6535
6556
|
|
6536
6557
|
<span class='kw'>if</span> <span class='id identifier rubyid_ruleHelp'>ruleHelp</span>
|
6537
6558
|
<span class='cvar'>@@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n Option Combinations:</span><span class='tstring_end'>"</span></span>
|
6538
|
-
<span class='cvar'>@@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='const'>RuleDisplay</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span><span class='lparen'>(</span> <span class='op'>&</span><span class='ivar'>@rules</span> <span class='rparen'>)</span>
|
6559
|
+
<span class='cvar'>@@io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='const'><span class='object_link'><a href="RuleDisplay.html" title="Como::RuleDisplay (class)">RuleDisplay</a></span></span><span class='period'>.</span><span class='id identifier rubyid_print'><span class='object_link'><a href="RuleDisplay.html#print-class_method" title="Como::RuleDisplay.print (method)">print</a></span></span><span class='lparen'>(</span> <span class='op'>&</span><span class='ivar'>@rules</span> <span class='rparen'>)</span>
|
6539
6560
|
<span class='kw'>end</span>
|
6540
6561
|
|
6541
6562
|
<span class='id identifier rubyid_exit'>exit</span><span class='lparen'>(</span> <span class='int'>1</span> <span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_doExit'>doExit</span>
|
@@ -6548,7 +6569,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6548
6569
|
<div class="method_details ">
|
6549
6570
|
<h3 class="signature " id="usageCommand-instance_method">
|
6550
6571
|
|
6551
|
-
|
6572
|
+
#<strong>usageCommand</strong> ⇒ <tt>Object</tt>
|
6552
6573
|
|
6553
6574
|
|
6554
6575
|
|
@@ -6571,19 +6592,19 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6571
6592
|
<pre class="lines">
|
6572
6593
|
|
6573
6594
|
|
6574
|
-
|
6575
|
-
|
6576
|
-
|
6577
|
-
|
6578
|
-
|
6579
|
-
|
6580
|
-
|
6581
|
-
|
6582
|
-
|
6583
|
-
|
6595
|
+
1823
|
6596
|
+
1824
|
6597
|
+
1825
|
6598
|
+
1826
|
6599
|
+
1827
|
6600
|
+
1828
|
6601
|
+
1829
|
6602
|
+
1830
|
6603
|
+
1831
|
6604
|
+
1832</pre>
|
6584
6605
|
</td>
|
6585
6606
|
<td>
|
6586
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6607
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1823</span>
|
6587
6608
|
|
6588
6609
|
<span class='kw'>def</span> <span class='id identifier rubyid_usageCommand'>usageCommand</span>
|
6589
6610
|
<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>
|
@@ -6603,7 +6624,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6603
6624
|
<div class="method_details ">
|
6604
6625
|
<h3 class="signature " id="usageIfHelp-instance_method">
|
6605
6626
|
|
6606
|
-
|
6627
|
+
#<strong>usageIfHelp</strong> ⇒ <tt>Object</tt>
|
6607
6628
|
|
6608
6629
|
|
6609
6630
|
|
@@ -6626,16 +6647,16 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6626
6647
|
<pre class="lines">
|
6627
6648
|
|
6628
6649
|
|
6629
|
-
|
6630
|
-
|
6631
|
-
|
6632
|
-
|
6633
|
-
|
6634
|
-
|
6635
|
-
|
6650
|
+
1813
|
6651
|
+
1814
|
6652
|
+
1815
|
6653
|
+
1816
|
6654
|
+
1817
|
6655
|
+
1818
|
6656
|
+
1819</pre>
|
6636
6657
|
</td>
|
6637
6658
|
<td>
|
6638
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6659
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1813</span>
|
6639
6660
|
|
6640
6661
|
<span class='kw'>def</span> <span class='id identifier rubyid_usageIfHelp'>usageIfHelp</span>
|
6641
6662
|
<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>
|
@@ -6652,7 +6673,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6652
6673
|
<div class="method_details ">
|
6653
6674
|
<h3 class="signature " id="usageNormal-instance_method">
|
6654
6675
|
|
6655
|
-
|
6676
|
+
#<strong>usageNormal</strong> ⇒ <tt>Object</tt>
|
6656
6677
|
|
6657
6678
|
|
6658
6679
|
|
@@ -6675,28 +6696,28 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6675
6696
|
<pre class="lines">
|
6676
6697
|
|
6677
6698
|
|
6678
|
-
|
6679
|
-
|
6680
|
-
|
6681
|
-
|
6682
|
-
|
6683
|
-
|
6684
|
-
|
6685
|
-
|
6686
|
-
|
6687
|
-
|
6688
|
-
|
6689
|
-
|
6690
|
-
|
6691
|
-
|
6692
|
-
|
6693
|
-
|
6694
|
-
|
6695
|
-
|
6696
|
-
|
6699
|
+
1835
|
6700
|
+
1836
|
6701
|
+
1837
|
6702
|
+
1838
|
6703
|
+
1839
|
6704
|
+
1840
|
6705
|
+
1841
|
6706
|
+
1842
|
6707
|
+
1843
|
6708
|
+
1844
|
6709
|
+
1845
|
6710
|
+
1846
|
6711
|
+
1847
|
6712
|
+
1848
|
6713
|
+
1849
|
6714
|
+
1850
|
6715
|
+
1851
|
6716
|
+
1852
|
6717
|
+
1853</pre>
|
6697
6718
|
</td>
|
6698
6719
|
<td>
|
6699
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6720
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1835</span>
|
6700
6721
|
|
6701
6722
|
<span class='kw'>def</span> <span class='id identifier rubyid_usageNormal'>usageNormal</span>
|
6702
6723
|
<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>
|
@@ -6725,7 +6746,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6725
6746
|
<div class="method_details ">
|
6726
6747
|
<h3 class="signature " id="warn-instance_method">
|
6727
6748
|
|
6728
|
-
|
6749
|
+
#<strong>warn</strong>(str, nl = false) ⇒ <tt>Object</tt>
|
6729
6750
|
|
6730
6751
|
|
6731
6752
|
|
@@ -6786,17 +6807,17 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6786
6807
|
<pre class="lines">
|
6787
6808
|
|
6788
6809
|
|
6789
|
-
|
6790
|
-
|
6791
|
-
|
6792
|
-
|
6810
|
+
2006
|
6811
|
+
2007
|
6812
|
+
2008
|
6813
|
+
2009</pre>
|
6793
6814
|
</td>
|
6794
6815
|
<td>
|
6795
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6816
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 2006</span>
|
6796
6817
|
|
6797
6818
|
<span class='kw'>def</span> <span class='id identifier rubyid_warn'>warn</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>
|
6798
6819
|
<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>
|
6799
|
-
<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='embexpr_end'>}</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='embexpr_end'>}</span><span class='tstring_content'> warning: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_str'>str</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
6820
|
+
<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='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="" title="Como::Opt (class)">Opt</a></span></span><span class='period'>.</span><span class='id identifier rubyid_progname'><span class='object_link'><a href="#progname-class_method" title="Como::Opt.progname (method)">progname</a></span></span><span class='embexpr_end'>}</span><span class='tstring_content'> warning: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_str'>str</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
6800
6821
|
<span class='kw'>end</span></pre>
|
6801
6822
|
</td>
|
6802
6823
|
</tr>
|
@@ -6806,7 +6827,7 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6806
6827
|
<div class="method_details ">
|
6807
6828
|
<h3 class="signature " id="~-instance_method">
|
6808
6829
|
|
6809
|
-
|
6830
|
+
#<strong>~</strong> ⇒ <tt>Object</tt>
|
6810
6831
|
|
6811
6832
|
|
6812
6833
|
|
@@ -6829,12 +6850,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6829
6850
|
<pre class="lines">
|
6830
6851
|
|
6831
6852
|
|
6832
|
-
|
6833
|
-
|
6834
|
-
|
6853
|
+
1639
|
6854
|
+
1640
|
6855
|
+
1641</pre>
|
6835
6856
|
</td>
|
6836
6857
|
<td>
|
6837
|
-
<pre class="code"><span class="info file"># File 'lib/como.rb', line
|
6858
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1639</span>
|
6838
6859
|
|
6839
6860
|
<span class='kw'>def</span> <span class='op'>~</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
6840
6861
|
<span class='ivar'>@value</span>
|
@@ -6848,11 +6869,12 @@ subcommands. MissingArgument Exception is generated if argument is missing.</p>
|
|
6848
6869
|
|
6849
6870
|
</div>
|
6850
6871
|
|
6851
|
-
|
6852
|
-
Generated on
|
6872
|
+
<div id="footer">
|
6873
|
+
Generated on Sat Sep 29 19:17:49 2018 by
|
6853
6874
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
6854
|
-
0.
|
6875
|
+
0.9.16 (ruby-2.5.1).
|
6855
6876
|
</div>
|
6856
6877
|
|
6878
|
+
</div>
|
6857
6879
|
</body>
|
6858
6880
|
</html>
|