1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233
|
.\" DO NOT MODIFY THIS FILE! it was generated by rd2
.TH optparse 1 "August 2001"
.SH Summary
.PP
Library for command line option analysis.
features:
.IP 1.
It is possible <option switch of a short form and a long form> to
exist together. It is also possible in one to bring the switch of
a short form together.
.IP 2.
It is possible to write bringing specification and the handler of
the switch together respectively in one place.
.IP 3.
The argument of the switch is converted into the class which
automatically specifies it.
.IP 4.
The option summary can be made.
.IP 5.
The option can be added on the way later.
.PP
.SH Class tree
.PP
.TP
.B
\(bu OptionParser front end
.TP
.B
\(bu OptionParser::Switch each switches
.TP
.B
\(bu OptionParser::List options list
.TP
.B
\(bu OptionParser::ParseError errors on parsing
.TP
.B
\(bu OptionParser::AmbiguousOption
.TP
.B
\(bu OptionParser::NeedlessArgument
.TP
.B
\(bu OptionParser::MissingArgument
.TP
.B
\(bu OptionParser::InvalidOption
.TP
.B
\(bu OptionParser::InvalidArgument
.TP
.B
\(bu OptionParser::AmbiguousArgument
.SH Object relations
.PP
.nf
\& +\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
\& | OptionParser |<>\-\-\-\-\-+
\& +\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | +\-\-\-\-\-\-\-\-+
\& | ,\-| Switch |
\& on_head \-\-\-\-\-\-\-\->+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ / +\-\-\-\-\-\-\-\-+
\& accept/reject \-\->| List |<|>\-
\& | |<|>\- +\-\-\-\-\-\-\-\-\-\-+
\& on \-\-\-\-\-\-\-\-\-\-\-\-\->+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ `\-| argument |
\& : : | class |
\& +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ |==========|
\& on_tail \-\-\-\-\-\-\-\->| | |pattern |
\& +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ |\-\-\-\-\-\-\-\-\-\-|
\& OptionParser.accept \->| DefaultList | |converter |
\& reject |(shared between| +\-\-\-\-\-\-\-\-\-\-+
\& | all instances)|
\& +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
.fi
.SH Classes & Modules
.PP
.SH OptionParser::Switch
.PP
Individual switch class.
.SH Instance methods
.PP
.TP
.fi
.B
OptionParser::Switch#parse(arg, val) {semi\-error handler}
Parses argument, convert and returns arg, block and
result of conversion.
.TP
.fi
.B
Arguments to @conv
substrings matched to @pattern, $&, $1,
$2 and so on.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
arg
argument string follows the switch.
.TP
.fi
.B
val
following argument.
.TP
.fi
.B
\&\fBblock\fP
\&\fByields\fP at semi\-error condition, instead of raises exception.
.SH
.PP
Simple option list providing mapping from short and/or long option
string to OptionParser::Switch, and mapping from acceptable
argument to matching pattern and converter pair. Also provides
summary feature.
.SH Class methods
.PP
.SH Instance methods
.PP
.TP
.fi
.B
OptionParser::List#atype
Map from acceptable argument types to pattern and converter pairs.
.TP
.fi
.B
OptionParser::List#short
Map from short style option switches to actual switch objects.
.TP
.fi
.B
OptionParser::List#long
Map from long style option switches to actual switch objects.
.TP
.fi
.B
OptionParser::List#list
List of all switches and summary string.
.TP
.fi
.B
OptionParser::List#prepend(switch, short_opts, long_opts, nolong_opts)
Inserts switch at head of the list, and associates short,
long and negated long options.
.TP
.fi
.B
OptionParser::List#append(switch, short_opts, long_opts, nolong_opts)
Appends switch at tail of the list, and associates short,
long and negated long options.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
switch
OptionParser::Switch instance to be inserted.
.TP
.fi
.B
short_opts
list of short style options.
.TP
.fi
.B
long_opts
list of long style options.
.TP
.fi
.B
nolong_opts
list of long style options with \&\fB"no\-"\fP prefix.
.TP
.fi
.B
OptionParser::List#search(id, key) [{block}]
Searches key in id list.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
id
searching list.
.TP
.fi
.B
k
searching key.
.TP
.fi
.B
\&\fBBlock\fP
yielded with the found value when succeeded.
.TP
.fi
.B
OptionParser::List#complete(id, opt, *pat, &block)
Searches list id for opt and *pat.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
id
searching list.
.TP
.fi
.B
opt
searching key.
.TP
.fi
.B
*pat
optional pattern for completion.
.TP
.fi
.B
\&\fBBlock\fP
yielded with the found value when succeeded.
.TP
.fi
.B
OptionParser::List#summarize(*args) {...}
Making summary table, yields the \&\fBblock\fP with each lines.
Each elements of \&\fB@list\fP should be able to \&\fBsummarize\fP.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
args
passed to elements#summarize through.
.TP
.fi
.B
\&\fBblock\fP
to be passed each lines(without newline).
.SH
.PP
The front\-end of \&\fBOptionParser\fP.
.SH Constants
.PP
.TP
.fi
.B
OptionParser::ArgumentStyle
Enumeration of acceptable argument styles; possible values are:
.TP
.fi
.B
OptionParser::NO_ARGUMENT
the switch takes no arguments. (\&\fB:NONE\fP)
.TP
.fi
.B
OptionParser::REQUIRED_ARGUMENT
the switch requires an argument. (\&\fB:REQUIRED\fP)
.TP
.fi
.B
OptionParser::OPTIONAL_ARGUMENT
the switch requires an optional argument, that is, may take or
not. (\&\fB:OPTIONAL\fP)
Use like \&\fB\-\-switch=argument\fP(long style) or
\&\fB\-Xargument\fP(short style). For short style, only portion
matched to argument pattern is dealed as argument.
.SH Class methods
.PP
.TP
.fi
.B
OptionParser.with([banner[, width[, indent]]]) [{...}]
Initializes new instance, and evaluates the block in context of
the instance if called as iterator. This behavior is equivalent
to older \&\fBnew\fP. This is \fIdeprecated\fP method.
cf. OptionParser.new
.TP
.fi
.B
Parameters:
.TP
.fi
.B
banner
banner message.
.TP
.fi
.B
width
summary width.
.TP
.fi
.B
indent
summary indent.
.TP
.fi
.B
\&\fBBlock\fP
to be evaluated in the new instance context.
.TP
.fi
.B
OptionParser.inc(arg[, default])
.TP
.fi
.B
OptionParser#inc(arg[, default])
Returns incremented value of default according to arg.
.TP
.fi
.B
OptionParser.new([banner[, width[, indent]]]) [{...}]
Initializes the instance, and yields itself if called as iterator.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
banner
banner message.
.TP
.fi
.B
width
summary width.
.TP
.fi
.B
indent
summary indent.
.TP
.fi
.B
\&\fBBlock\fP
to be evaluated in the new instance context.
.TP
.fi
.B
OptionParser.terminate([arg])
Terminates option parsing. Optional parameter arg would be
pushed back if given.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
arg
string pushed back to be first non\-option argument
.TP
.fi
.B
OptionParser.accept(t, [pat]) {...}
.TP
.fi
.B
OptionParser#accept(t, [pat]) {...}
Directs to accept specified class argument.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
t
argument class specifier, any object including Class.
.TP
.fi
.B
pat
pattern for argument, defaulted to t if it respond to \&\fBmatch\fP.
.TP
.fi
.B
\&\fBBlock\fP
receives argument string and should be convert to desired class.
.TP
.fi
.B
OptionParser.reject(t)
.TP
.fi
.B
OptionParser#reject(t)
Directs to reject specified class argument.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
t
argument class specifier, any object including Class.
.SH Instance methods
.PP
.TP
.fi
.B
OptionParser#banner
.TP
.fi
.B
OptionParser#banner=(heading)
Heading banner preceding summary.
.TP
.fi
.B
OptionParser#summary_width
.TP
.fi
.B
OptionParser#summary_width=(width)
Width for option list portion of summary. Must be \&\fBNumeric\fP.
.TP
.fi
.B
OptionParser#summary_indent
.TP
.fi
.B
OptionParser#summary_indent=(indent)
Indentation for summary. Must be \&\fBString\fP (or have \&\fB+ String\fP).
.TP
.fi
.B
OptionParser#program_name
.TP
.fi
.B
OptionParser#program_name=(name)
Program name to be emitted in error message and default banner,
defaulted to \&\fB$0\fP.
.TP
.fi
.B
OptionParser#version
.TP
.fi
.B
OptionParser#version=(ver)
Version.
.TP
.fi
.B
OptionParser#release
.TP
.fi
.B
OptionParser#release=(rel)
Release code.
.TP
.fi
.B
OptionParser#ver
Returns version string from program_name, \&\fBversion\fP and
\&\fBrelease\fP.
.TP
.fi
.B
OptionParser#top
Subject of on/on_head, accept/reject.
.TP
.fi
.B
OptionParser#base
Subject of on_tail.
.TP
.fi
.B
OptionParser#new
Pushes a new \&\fBList\fP.
.TP
.fi
.B
OptionParser#remove
Removes the last \&\fBList\fP.
.TP
.fi
.B
OptionParser#summarize(to = [], width = @summary_width, max = width \- 1, indent = @summary_indent)
Puts option summary into to, and returns to.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
to
output destination, which must have method <<. Defaulted to \&\fB[]\fP.
.TP
.fi
.B
width
width of left side. Defaulted to @summary_width
.TP
.fi
.B
max
maximum length allowed for left side. Defaulted to \&\fBwidth \- 1\fP
.TP
.fi
.B
indent
indentation. Defaulted to @summary_indent
.TP
.fi
.B
\&\fBBlock\fP
yields with each line if called as iterator.
.TP
.fi
.B
OptionParser#to_str
.TP
.fi
.B
OptionParser#to_s
Returns option summary string.
.TP
.fi
.B
OptionParser#to_a
Returns option summary list.
.TP
.fi
.B
OptionParser#switch
Creates OptionParser::Switch.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
*opts
option definition:
.TP
.fi
.B
argument style
see OptionParser::ArgumentStyle
.TP
.fi
.B
argument pattern
acceptable option argument format, must pre\-defined with
OptionParser.accept or OptionParser#accept, or
\&\fBRegexp\fP. This can appear once or assigned as \&\fBString\fP
if not present, otherwise causes exception \&\fBArgumentError\fP.
cf. Acceptable argument classes.
.TP
.fi
.B
Hash
.TP
.fi
.B
Array
possible argument values.
.TP
.fi
.B
Proc
.TP
.fi
.B
Method
alternative way to give the \fIhandler\fP.
.TP
.fi
.B
"\-\-switch=MANDATORY", "\-\-switch[=OPTIONAL]", "\-\-switch"
specifies long style switch that takes \fImandatory\fP,
\fIoptional\fP and \fIno\fP argument, respectively.
.TP
.fi
.B
"\-xMANDATORY", "\-x[OPTIONAL]", "\-x"
specifies short style switch that takes \fImandatory\fP,
\fIoptional\fP and \fIno\fP argument, respectively.
.TP
.fi
.B
"\-[a\-z]MANDATORY", "\-[a\-z][OPTIONAL]", "\-[a\-z]"
special form short style switch that matches character
range(not fullset of regular expression).
.TP
.fi
.B
"=MANDATORY", "=[OPTIONAL]"
argument style and description.
.TP
.fi
.B
"description", ...
\fIdescription\fP for this option.
.TP
.fi
.B
\&\fBBlock\fP
\fIhandler\fP to convert option argument to arbitrary \&\fBClass\fP.
.TP
.fi
.B
OptionParser#on(*opts) [{...}]
.TP
.fi
.B
OptionParser#def_option(*opts) [{...}]
.TP
.fi
.B
OptionParser#on_head(*opts) [{...}]
.TP
.fi
.B
OptionParser#def_head_option(*opts) [{...}]
.TP
.fi
.B
OptionParser#on_tail(*opts) [{...}]
.TP
.fi
.B
OptionParser#def_tail_option(*opts) [{...}]
Defines option switch and handler. \&\fBon_head\fP, \&\fBdef_head_option\fP
and \&\fBon_tail\fP, \&\fBdef_tail_option\fP put the switch at head
and tail of summary, respectively.
cf. OptionParser#switch.
.TP
.fi
.B
OptionParser#order(*argv) [{...}]
.TP
.fi
.B
OptionParser#order!([argv = ARGV]) [{...}]
Parses argv in order. When non\-option argument encountered,
yields it if called as iterator, otherwise terminates the parse
process.
Returns rest of argv left unparsed.
\&\fBorder!\fP takes argument array itself, and removes switches
destructively.
Defaults to parse ARGV.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
argv
command line arguments to be parsed.
.TP
.fi
.B
\&\fBBlock\fP
called with each non\-option argument.
.TP
.fi
.B
OptionParser#permute(*argv)
.TP
.fi
.B
OptionParser#permute!([argv = ARGV])
Parses argv in permutation mode, and returns list of
non\-option arguments.
\&\fBpermute!\fP takes argument array itself, and removes switches
destructively.
Defaults to parse ARGV.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
argv
command line arguments to be parsed.
.TP
.fi
.B
OptionParser#parse(*argv)
.TP
.fi
.B
OptionParser#parse!([argv = ARGV])
Parses argv in order when environment variable \&\fBPOSIXLY_CORRECT\fP
is set, otherwise permutation mode
\&\fBparse!\fP takes argument array itself, and removes switches
destructively.
Defaults to parse ARGV.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
argv
command line arguments to be parsed.
.SH Acceptable argument classes
.PP
.TP
.fi
.B
Object
any string, and no conversion. this is fall\-back.
.TP
.fi
.B
String
any none\-empty string, and no conversion.
.TP
.fi
.B
Integer
Ruby/C\-like integer, octal for \&\fB0\-7\fP sequence, binary for
\&\fB0b\fP, hexadecimal for \&\fB0x\fP, and decimal for others; with
optional sign prefix. Converts to \&\fBInteger\fP.
.TP
.fi
.B
Float
Float number format, and converts to \&\fBFloat\fP.
.TP
.fi
.B
Numeric
Generic numeric format, and converts to \&\fBInteger\fP for integer
format, \&\fBFloat\fP for float format.
.TP
.fi
.B
OptionParser::DecimalInteger
Decimal integer format, to be converted to \&\fBInteger\fP.
.TP
.fi
.B
OptionParser::OctalInteger
Ruby/C like octal/hexadecimal/binary integer format, to be converted
to \&\fBInteger\fP.
.TP
.fi
.B
OptionParser::DecimalNumeric
Decimal integer/float number format, to be converted to
\&\fBInteger\fP for integer format, \&\fBFloat\fP for float format.
.TP
.fi
.B
TrueClass
Boolean switch, which means whether it is present or not, whether it
is absent or not with prefix \&\fBno\-\fP, or it takes an argument
\&\fByes/no/true/false/+/\-\fP.
.TP
.fi
.B
FalseClass
Similar to TrueClass, but defaulted to \&\fBfalse\fP.
.TP
.fi
.B
Array
List of strings separated by ","
.SH Exceptions
.PP
.SH
.PP
Base class of exceptions from OptionParser
.SH Superclass
.PP
\&\fBRuntimeError\fP
.SH Constants
.PP
.TP
.fi
.B
OptionParser::ParseError::Reason
Reason caused error.
.SH Instance methods
.PP
.TP
.fi
.B
OptionParser::ParseError#recover(argv)
Push backs erred argument(s) to argv.
.TP
.fi
.B
OptionParser::ParseError#reason
Returns error reason. Override this to I18N.
.TP
.fi
.B
OptionParser::ParseError#inspect
Returns inspection string.
.TP
.fi
.B
OptionParser::ParseError#message
.TP
.fi
.B
OptionParser::ParseError#to_s
.TP
.fi
.B
OptionParser::ParseError#to_str
Default stringizing method to emit standard error message.
.SH
.PP
Raises when encountered ambiguously completable string.
.SH Superclass
.PP
OptionParser::ParseError
.SH
.PP
Raises when encountered argument for switch defined as which takes no
argument.
.SH Superclass
.PP
OptionParser::ParseError
.SH
.PP
Raises when no argument found for switch defined as which needs
argument.
.SH Superclass
.PP
OptionParser::ParseError
.SH
.PP
Raises when undefined switch.
.SH Superclass
.PP
OptionParser::ParseError
.SH
.PP
Raises when the given argument does not match required format.
.SH Superclass
.PP
OptionParser::ParseError
.SH
.PP
Raises when the given argument word can't completed uniquely.
.SH Superclass
.PP
OptionParser::InvalidArgument
.SH Miscellaneous
.PP
.SH
.PP
Extends command line arguments array to parse itself.
.TP
.fi
.B
OptionParser::Arguable#options=(opt)
Sets OptionParser object, when opt is \&\fBfalse\fP or
\&\fBnil\fP, methods OptionParser::Arguable#options and
OptionParser::Arguable#options= are undefined. Thus, there
is no ways to access the OptionParser object via the
receiver object.
.TP
.fi
.B
OptionParser::Arguable#options
Actual OptionParser object, automatically created if not
yet.
If called as iterator, yields with the OptionParser object
and returns the result of the block. In this case, rescues any
OptionParser::ParseError exceptions in the block, just emits
error message to STDERR and returns \&\fBnil\fP.
.TP
.fi
.B
Parameters:
.TP
.fi
.B
\&\fBblock\fP
Yielded with the OptionParser instance.
.TP
.fi
.B
OptionParser::Arguable#order!
.TP
.fi
.B
OptionParser::Arguable#permute!
.TP
.fi
.B
OptionParser::Arguable#parse!
Parses self destructively, and returns self just contains
rest arguments left without parsed.
.SH OptionParser::Acceptables
.PP
Acceptable argument classes. Now contains \&\fBDecimalInteger\fP,
\&\fBOctalInteger\fP and \&\fBDecimalNumeric\fP.
see Acceptable argument classes.
|