home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ruby164.zip
/
rbemx164.zip
/
ruby
/
share
/
doc
/
optparse-0.8.2
/
optparse.ja.rd
< prev
next >
Wrap
Text File
|
2001-06-18
|
23KB
|
724 lines
$Copyleft: (c) 2001 Nobuyoshi Nakada <nobu.nokada@softhome.net> $
$Id: optparse.ja.rd,v 0.3 2001/04/13 06:43:30 nobu Exp $
=begin
= ═╫╠≤
Ñ│Ñ▐Ñ≤Ñ╔ÑΘÑñÑ≤ѬÑ╫Ñ╖ÑτÑ≤▓≥└╧═╤ÑΘÑñÑ╓ÑΘÑΩíú
Ñ╡Ñ▌í╝Ñ╚ñ╖ñ╞ñññδ╡í╟╜:
(1) ├╗ññ╖┴╝░ñ╚─╣ññ╖┴╝░ñ╬ѬÑ╫Ñ╖ÑτÑ≤Ñ╣ÑñÑ├Ñ┴ñ≥║«║▀▓─╟╜íú
├╗╖┴╝░ñ╬Ñ╣ÑñÑ├Ñ┴ñ╧░∞ñ─ñ╦ñ▐ñ╚ñßñδñ│ñ╚ñΓ▓─╟╜íú
(2) Ñ╣ÑñÑ├Ñ┴ñ╬╗╪─Ωñ╚Ñ╧Ñ≤Ñ╔ÑΘñ≥ñ╜ñ∞ñ╛ñ∞░∞▓╒╜Ωñ╦ñ▐ñ╚ñßñ╞╜±ñ▒ñδíú
(3) Ñ╣ÑñÑ├Ñ┴ñ╬░·┐⌠ñ╧╝½╞░┼¬ñ╦╗╪─Ωñ╖ñ┐Ñ»ÑΘÑ╣ñ╦╩╤┤╣ñ╡ñ∞ñδíú
(4) ѬÑ╫Ñ╖ÑτÑ≤Ñ╡Ñ▐ÑΩñ≥║εñ∞ñδíú
(5) ╕σñ½ñΘíóñóñδñññ╧┼╙├µñ╟ѬÑ╫Ñ╖ÑτÑ≤ñ≥─╔▓├ñ╟ñ¡ñδíú
=end #'#"#`#
=begin
= │╡═╫
== Ñ»ÑΘÑ╣╣╜└«
* ((<OptionParser>)) Ñ╒ÑφÑ≤Ñ╚Ñ¿Ñ≤Ñ╔
* ((<OptionParser::Switch>)) ñ╜ñ∞ñ╛ñ∞ñ╬Ñ╣ÑñÑ├Ñ┴
* ((<OptionParser::List>)) ѬÑ╫Ñ╖ÑτÑ≤ÑΩÑ╣Ñ╚
* ((<OptionParser::ParseError>)) ѬÑ╫Ñ╖ÑτÑ≤▓≥└╧╗■ñ╬Ñ¿ÑΘí╝
* ((<OptionParser::AmbiguousOption>))
* ((<OptionParser::NeedlessArgument>))
* ((<OptionParser::MissingArgument>))
* ((<OptionParser::InvalidOption>))
* ((<OptionParser::InvalidArgument>))
* ((<OptionParser::AmbiguousArgument>))
== ѬÑ╓Ñ╕ѺѻÑ╚┤╪╧ó┐▐
+--------------+
| OptionParser |<>-----+
+--------------+ | +--------+
| ,-| Switch |
on_head -------->+-------------+ / +--------+
accept/reject -->| List |<|>-
| |<|>- +----------+
on ------------->+-------------+ `-| argument |
: : | class |
+-------------+ |==========|
on_tail -------->| | |pattern |
+-------------+ |----------|
OptionParser.accept ->| DefaultList | |converter |
reject |(┴┤ÑñÑ≤Ñ╣Ñ┐Ñ≤| +----------+
| Ñ╣ñ╟╢ª═¡) |
+-------------+
=end #'#"#`#
=begin
= Ñ»ÑΘÑ╣ & ÑΓÑ╕Ñσí╝Ñδ
=end #'#"#`#
=begin private
== ((:OptionParser::Completion:))
Ñ¡í╝Ñ∩í╝Ñ╔ñ╬╩Σ┤░ñ≥ñ╣ñδÑΓÑ╕Ñσí╝Ñδ
=end #'#"#`#
=begin private
--- OptionParser::Completion#complete(key[, pat])
((|key|))ñ≥├╡ñ╣íú╕½╔╒ñ½ñΘñ╩ññ╛∞╣τñ╧((|pat|))ñ╟╩Σ┤░ñ╖ñ╞├╡ñ╣íú
:Parameters:
: ((|key|))
╕í║≈ñ╣ñδÑ¡í╝Ñ∩í╝Ñ╔
: ((|pat|))
╩Σ┤░ñ╣ñδÑ╤Ñ┐í╝Ñ≤
=end #'#"#`#
=begin private
--- OptionParser::Completion#convert(opt, *val)
((<OptionParser::Completion#complete>))ñ╟╕í║≈ñ╖ñ┐╖δ▓╠ñ½ñΘ║╟╜Θñ╬ñΓñ╬ñ≥╝ΦñΩ╜╨ñ╣íú
=end #'#"#`#
=begin private
== ((:OptionParser::Filling:))
(({Array#fill}))ñ╬ñΦñªñ╩ÑßÑ╜Ñ├Ñ╔(({fill}))ñ≥─╔▓├ñ╣ñδíú
=end #'#"#`#
=begin private
== ((:OptionParser::OptionMap:))
ѬÑ╫Ñ╖ÑτÑ≤í┐Ñ¡í╝Ñ∩í╝Ñ╔╩╕╗·╬≤ñ½ñΘѬÑ╓Ñ╕ѺѻÑ╚ñ╪ñ╬Ñ▐Ñ├Ñ╫(╩Σ┤░╡í╟╜╔╒ñ¡)íú
=== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
(({Hash}))
=== ÑñÑ≤Ñ»Ñδí╝Ñ╔ÑΓÑ╕Ñσí╝Ñδ
((<OptionParser::Completion>)), ((<OptionParser::Filling>))
=end #'#"#`#
=begin
== ((:OptionParser::Switch:))
│╞Ñ╣ÑñÑ├Ñ┴ñ╬Ñ»ÑΘÑ╣íú
=end #'#"#`#
=begin private
=== Ñ»ÑΘÑ╣ÑßÑ╜Ñ├Ñ╔
=end
=begin private
--- OptionParser::Switch.guess(arg)
((|arg|))ñ½ñΘ░·┐⌠ñ╬Ñ╣Ñ┐ÑñÑδñ≥╚╜├╟ñ╣ñδíú
│║┼÷ñ╣ñδ((<OptionParser::Switch>))ñ╬Ñ╡Ñ╓Ñ»ÑΘÑ╣ñ≥╩╓ñ╣íú
=end #'#"#`#
=begin private
--- OptionParser::Switch.new
=end #'#"#`#
=begin
=== ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ÑßÑ╜Ñ├Ñ╔
=end
=begin private
--- OptionParser::Switch#parse_arg(arg) {non-serious error handler}
Ñ╣ÑñÑ├Ñ┴ñ╦┬╨ñ╣ñδ░·┐⌠ñ≥Ñ╤í╝Ñ╣ñ╖ñ╞íó░·┐⌠ñ╚ñ▀ñ╩ñ╣╔⌠╩¼ñ╚╗─ñΩñ╬╔⌠╩¼ñ╦╩¼│Σ
ñ╖ñ╞╩╓ñ╣íú
:Parameters:
: ((|arg|))
Ñ╤í╝Ñ╣ñ╣ñδÑ╣ÑñÑ├Ñ┴ñ╦┬╨ñ╣ñδ░·┐⌠íú
: (({block}))
Ñ╤Ñ┐í╝Ñ≤ñ╦░·┐⌠ñ¼Ñ▐Ñ├Ñ┴ñ╖ñ╩ñññ╚ñ¡ñ╦╕╞ñ╨ñ∞ñδíú
=end #'#"#`#
=begin
--- OptionParser::Switch#parse(arg, val) {semi-error handler}
░·┐⌠ñ≥Ñ╤í╝Ñ╣íó╩╤┤╣ñ╖ñ╞((|arg|))íó((|block|))íó╩╤┤╣╖δ▓╠ñ≥╩╓ñ╣íú
: ((|@conv|))ñ╪ñ╬░·┐⌠:
((|@pattern|))ñ╦Ñ▐Ñ├Ñ┴ñ╖ñ┐╔⌠╩¼╩╕╗·╬≤ñ╬ÑΩÑ╣Ñ╚íó
((|$&|)), ((|$1|)), ((|$2|)) ñ╩ñ╔íú
:Parameters:
: ((|arg|))
Ñ╣ÑñÑ├Ñ┴ñ╦─╛ñ╦╗╪─Ωñ╡ñ∞ñ╞ñññ┐░·┐⌠ñ╬╩╕╗·╬≤íú
: ((|val|))
Ñ╣ÑñÑ├Ñ┴░╩╣▀ñ╬░·┐⌠íú
: (({block}))
Ñ¿ÑΘí╝ñ½ñΓ├╬ñ∞ñ╩ñññ╚ñ¡ñ╦╬π│░ñ≥(({yield}))ñ╣ñδíú
=end #'#"#`#
=begin
--- OptionParser::Switch#summarize(sdone, ldone, width, max, indent)
ѬÑ╫Ñ╖ÑτÑ≤Ñ╡Ñ▐ÑΩñ≥║εñδíú
:Parameters:
: ((|sdone|))
ñ╣ñ╟ñ╦Ñ╡Ñ▐ÑΩñ╦╞■ñ├ñ╞ñññδ├╗╖┴╝░ѬÑ╫Ñ╖ÑτÑ≤ñ≥Ñ¡í╝ñ╚ñ╣ñδÑ╧Ñ├Ñ╖Ñσíú
: ((|ldone|))
ñ╣ñ╟ñ╦Ñ╡Ñ▐ÑΩñ╦╞■ñ├ñ╞ñññδ─╣╖┴╝░ѬÑ╫Ñ╖ÑτÑ≤ñ≥Ñ¡í╝ñ╚ñ╣ñδÑ╧Ñ├Ñ╖Ñσíú
: ((|width|))
║╕┬ªñ╬ѬÑ╫Ñ╖ÑτÑ≤ÑΩÑ╣Ñ╚╔⌠╩¼ñ╬╔²íúѬÑ╫Ñ╖ÑτÑ≤ñ╬└Γ╠└ñ╧ñ╜ñ╬▒ª┬ªíó((|width|))╖σ╠▄ñ½ñΘ╗╧ñ▐ñδíú
: ((|max|))
║╕┬ªñ╬║╟┬τ╔²íúѬÑ╫Ñ╖ÑτÑ≤ñ╧((|max|))╖σ░╩╞Γñ╦╡═ñßñΘñ∞ñδíú
: ((|indent|))
│╞╣╘ñ≥ÑñÑ≤Ñ╟Ñ≤Ñ╚ñ╣ñδñ┐ñßñ╬╩╕╗·╬≤íú
: (({block}))
│╞╣╘ñ┤ñ╚ñ╦┼╧ñ╡ñ∞ñδ(▓■╣╘ñ╧╔╒ñ½ñ╩ññ)íú
=end #'#"#`#
=begin
--- OptionParser::Switch#-@
╚┐┼╛ñ╖ñ┐Ñ╓í╝ÑΩÑóÑ≤Ñ╣ÑñÑ├Ñ┴(((|@block|))ñ╦┼╧ñ╡ñ∞ñδ░·┐⌠ñ¼╚┐┼╛ñ╡
ñ∞ñδ)ñ≥║εñδ
=end #'#"#`#
=begin private
== Ñ╣ÑñÑ├Ñ┴ñ╬╝∩╬α
=end #'#"#`#
=begin private
=== ((:OptionParser::Switch::NoArgument:))
░·┐⌠ñ≥ñ╚ñΘñ╩ññÑ╣ÑñÑ├Ñ┴íú
==== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
((<OptionParser::Switch>))
==== ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ÑßÑ╜Ñ├Ñ╔
--- OptionParser::Switch::NoArgument#parse
░·┐⌠ñ¼ñóñδñ╚╬π│░ñ≥╚»└╕íú
=end #'#"#`#
=begin private
=== ((:OptionParser::Switch::RequiredArgument:))
░·┐⌠ñ≥ñ╚ñδÑ╣ÑñÑ├Ñ┴íú
==== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
((<OptionParser::Switch>))
==== ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ÑßÑ╜Ñ├Ñ╔
--- OptionParser::Switch::RequiredArgument#parse
░·┐⌠ñ¼ñ╩ñññ╚╬π│░ñ≥╚»└╕íú
=end #'#"#`#
=begin private
=== ((:OptionParser::Switch::OptionalArgument:))
░·┐⌠ñ≥╛╩╬¼ñ╟ñ¡ñδÑ╣ÑñÑ├Ñ┴íú
==== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
((<OptionParser::Switch>))
==== ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ÑßÑ╜Ñ├Ñ╔
--- OptionParser::Switch::OptionalArgument#parse
░·┐⌠ñ¼ñóñ∞ñ╨ñ╜ñ∞ñ≥▓≥└╧íóñ╩ñ▒ñ∞ñ╨Ñ╟Ñ╒Ñ⌐ÑδÑ╚├═ñ≥╗╚═╤íú
=end #'#"#`#
=begin
== ((:OptionParser::List:))
├▒░∞ñ╬ѬÑ╫Ñ╖ÑτÑ≤ÑΩÑ╣Ñ╚íó├╗í┐─╣╖┴╝░ñ╬ѬÑ╫Ñ╖ÑτÑ≤╩╕╗·╬≤ñ½ñΘÑ╣ÑñÑ├Ñ┴ñ╪ñ╬Ñ▐Ñ├
Ñ╘Ñ≤Ñ░íó╝⌡ñ▒╔╒ñ▒ñΘñ∞ñδ░·┐⌠Ñ┐ÑñÑ╫ñ½ñΘÑ╤Ñ┐í╝Ñ≤ñ╚Ñ│Ñ≤Ñ╨í╝Ñ┐ñ╪ñ╬Ñ▐Ñ├Ñ╘Ñ≤Ñ░ñ≥
─≤╢íñ╣ñδíúÑ╡Ñ▐ÑΩñΓñ│ñ│ñ╟─≤╢íñ╡ñ∞ñδíú
=end #'#"#`#
=begin
=== Ñ»ÑΘÑ╣ÑßÑ╜Ñ├Ñ╔
=end #'#"#`#
=begin private
--- OptionParser::List.new
ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ñ╬╜Θ┤ⁿ▓╜íú
=end #'#"#`#
=begin
=== ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ÑßÑ╜Ñ├Ñ╔
=end #'#"#`#
=begin
--- OptionParser::List#atype
░·┐⌠Ñ┐ÑñÑ╫ñ½ñΘÑ╤Ñ┐í╝Ñ≤í┐Ñ│Ñ≤Ñ╨í╝Ñ┐ñ╬Ñ┌Ñóñ╪ñ╬Ñ▐Ñ├Ñ╫íú
--- OptionParser::List#short
├╗╖┴╝░ñ╬ѬÑ╫Ñ╖ÑτÑ≤Ñ╣ÑñÑ├Ñ┴ñ½ñΘÑ╣ÑñÑ├Ñ┴ѬÑ╓Ñ╕ѺѻÑ╚ñ╪ñ╬Ñ▐Ñ├Ñ╫íú
--- OptionParser::List#long
─╣╖┴╝░ñ╬ѬÑ╫Ñ╖ÑτÑ≤Ñ╣ÑñÑ├Ñ┴ñ½ñΘÑ╣ÑñÑ├Ñ┴ѬÑ╓Ñ╕ѺѻÑ╚ñ╪ñ╬Ñ▐Ñ├Ñ╫íú
--- OptionParser::List#list
┴┤Ñ╣ÑñÑ├Ñ┴ñ╚Ñ╡Ñ▐ÑΩ╩╕╗·╬≤ñ╬ÑΩÑ╣Ñ╚íú
=end #'#"#`#
=begin private
--- OptionParser::List#accept(type[, pattern]) {...}
((<OptionParser.accept>))╗▓╛╚íú
--- OptionParser::List#reject(type)
((<OptionParser.reject>))╗▓╛╚íú
=end #'#"#`#
=begin private
--- OptionParser::List#update(sw, sopts, lopts, nlopts = [])
((|sw|))ñ≥((|sopts|))íó((|lopts|))íó((|nlopts|))ñ╦ñ╖ñ┐ñ¼ñ├ñ╞─╔▓├ñ╣ñδíú
:Parameters:
: ((|sw|))
─╔▓├ñ╣ñδ((<OptionParser::Switch>))ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣íú
: ((|sopts|))
((|sw|))ñ╦┬╨▒■ñ╣ñδ├╗╖┴╝░ѬÑ╫Ñ╖ÑτÑ≤ñ╬ÑΩÑ╣Ñ╚íú
: ((|lopts|))
((|sw|))ñ╦┬╨▒■ñ╣ñδ─╣╖┴╝░ѬÑ╫Ñ╖ÑτÑ≤ñ╬ÑΩÑ╣Ñ╚íú
: ((|nlopts|))
╚▌─Ω╖┴╝░ñ╬─╣╖┴╝░ѬÑ╫Ñ╖ÑτÑ≤ñ╬ÑΩÑ╣Ñ╚íú
=end #'#"#`#
=begin
--- OptionParser::List#prepend(switch, short_opts, long_opts, nolong_opts)
((|switch|))ñ≥ÑΩÑ╣Ñ╚ñ╬╞¼ñ╦┴▐╞■ñ╖ñ╞íó├╗í┐─╣í┐╚▌─Ω╖┴╝░ñ╬ѬÑ╫Ñ╖ÑτÑ≤ñ╦┬╨▒■ñ╡ñ╗ñδíú
--- OptionParser::List#append(switch, short_opts, long_opts, nolong_opts)
((|switch|))ñ≥ÑΩÑ╣Ñ╚ñ╬║╟╕σñ╦─╔▓├ñ╖ñ╞íó├╗í┐─╣í┐╚▌─Ω╖┴╝░ñ╬ѬÑ╫Ñ╖ÑτÑ≤ñ╦┬╨▒■ñ╡ñ╗ñδíú
:Parameters:
: ((|switch|))
┴▐╞■ñ╣ñδ((<OptionParser::Switch>))ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣íú
: ((|short_opts|))
((|switch|))ñ╦┬╨▒■ñ╣ñδ├╗╖┴╝░ѬÑ╫Ñ╖ÑτÑ≤ñ╬ÑΩÑ╣Ñ╚íú
: ((|long_opts|))
((|switch|))ñ╦┬╨▒■ñ╣ñδ─╣╖┴╝░ѬÑ╫Ñ╖ÑτÑ≤ñ╬ÑΩÑ╣Ñ╚íú
: ((|nolong_opts|))
(({"no-"}))ñ╬ñ─ñ»╚▌─Ω╖┴╝░ñ╬ѬÑ╫Ñ╖ÑτÑ≤ñ╬ÑΩÑ╣Ñ╚íú
=end #'#"#`#
=begin
--- OptionParser::List#search(id, key) [{block}]
((|key|))ñ≥((|id|))ñ╬ÑΩÑ╣Ñ╚ñ½ñΘ╕í║≈ñ╣ñδíú
:Parameters:
: ((|id|))
╕í║≈ñ╣ñδÑΩÑ╣Ñ╚íú
: ((|k|))
╕í║≈ñ╣ñδÑ¡í╝íú
: (({Block}))
╕½╔╒ñ½ñ├ñ┐ñ╚ñ¡ñ╦ñ╜ñ╬├═ñ╟╕╞ñ╙╜╨ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
--- OptionParser::List#complete(id, opt, *pat, &block)
((|opt|))ñ≥((|id|))ñ╬ÑΩÑ╣Ñ╚ñ½ñΘ((|*pat|))ñ╟╩Σ┤░ñ╖ñ╞╕í║≈ñ╣ñδíú
:Parameters:
: ((|id|))
╕í║≈ñ╣ñδÑΩÑ╣Ñ╚íú
: ((|opt|))
╕í║≈ñ╣ñδÑ¡í╝íú
: ((|*pat|))
╩Σ┤░ñ╦╗╚ñªÑ╤Ñ┐í╝Ñ≤íú
: (({Block}))
╕½╔╒ñ½ñ├ñ┐ñ╚ñ¡ñ╦ñ╜ñ╬├═ñ╟╕╞ñ╙╜╨ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
--- OptionParser::List#summarize(*args) {...}
Ñ╡Ñ▐ÑΩÑ╞í╝Ñ╓Ñδñ≥║εñδíú░∞╣╘ñ┤ñ╚ñ╦(({block}))ñ≥╕╞ñ╙╜╨ñ╣íú
(({@list}))ñ╬═╫┴╟ñ╧(({summarize}))ñ╟ñ¡ñδ╔¼═╫ñ¼ñóñδíú
:Parameters:
: ((|args|))
ñ╜ñ╬ñ▐ñ▐│╞═╫┴╟ñ╬ summarize ñ╦┼╧ñ╡ñ∞ñδíú
: (({block}))
│╞╣╘ñ┤ñ╚ñ╦┼╧ñ╡ñ∞ñδ(▓■╣╘ñ╧╔╒ñ½ñ╩ññ)íú
=end #'#"#`#
=begin private
== ((:OptionParser::CompletingHash:))
╩Σ┤░╕í║≈╡í╟╜╔╒ñ¡ñ╬(({Hash}))íú
=== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
(({Hash}))
=== ÑñÑ≤Ñ»Ñδí╝Ñ╔ÑΓÑ╕Ñσí╝Ñδ
((<OptionParser::Completion>))
=end #'#"#`#
=begin private
=== ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ÑßÑ╜Ñ├Ñ╔
--- OptionParser::CompletingHash#match(key)
Ñ╧Ñ├Ñ╖ÑσÑ¡í╝ñ≥╩Σ┤░ñ╖ñ╞╕í║≈ñ╣ñδíú
=end #'#"#`#
=begin
== ((:OptionParser:))
ѬÑ╫Ñ╖ÑτÑ≤Ñ╤í╝Ñ╡ñ╬Ñ╒ÑφÑ≤Ñ╚Ñ¿Ñ≤Ñ╔íú
=end #'#"#`#
=begin
=== ─Ω┐⌠
=end #'#"#`#
=begin
--- OptionParser::ArgumentStyle
╝ΦñΩñªñδ░·┐⌠ñ╬Ñ╣Ñ┐ÑñÑδñ╬╝∩╬αíú├═ñ╧ñ╜ñ∞ñ╛ñ∞:
: (({OptionParser::NO_ARGUMENT}))
░·┐⌠ñ≥╝ΦñΘñ╩ññÑ╣ÑñÑ├Ñ┴íú
: (({OptionParser::REQUIRED_ARGUMENT}))
░·┐⌠ñ¼╔¼┐▄ñ╬Ñ╣ÑñÑ├Ñ┴íú─╛╕σñ╦░·┐⌠ñ¼(({=}))ñ╟╗╪─Ωñ╡ñ∞ñ╞ñññ╩ñ▒ñ∞ñ╨íó╝íñ╬╩╕╗·╬≤ñ≥░·┐⌠ñ╚ñ▀ñ╩ñ╣íú
╢⌡ñ╬░·┐⌠ñ≥╗╪─Ωñ╣ñδñ╚ñ¡ñ╧íó(({=}))ñ└ñ▒ñ≥ñ─ñ▒ñδíú
: (({OptionParser::OPTIONAL_ARGUMENT}))
ѬÑ╫Ñ╖ÑτÑ╩Ñδñ╩░·┐⌠ñ≥╝ΦñδÑ╣ÑñÑ├Ñ┴íúñ─ñ▐ñΩ░·┐⌠ñ≥╔╒ñ▒ñ╞ñΓ╔╒ñ▒ñ╩ñ»ñ╞ñΓñΦññíú
░·┐⌠ñ≥╗╪─Ωñ╣ñδñ╚ñ¡ñ╧(({--switch=argument}))(─╣╖┴╝░)ñ½íó
(({-Xargument}))(├╗╖┴╝░)ñ╚ñ╣ñδíú├╗╖┴╝░ñ╟ñ╧íó((<░·┐⌠Ñ╤Ñ┐í╝Ñ≤>))ñ╦Ñ▐Ñ├
Ñ┴ñ╣ñδ╔⌠╩¼ñ└ñ▒ñ¼░·┐⌠ñ╚ñ╖ñ╞╟º╝▒ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
--- OptionParser::DefaultList
'--'ñ╬ñΦñªñ╦┴┤OptionParserÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ñ╟╢ª═¡ñ╣ñδÑ╣ÑñÑ├Ñ┴ñΣíóÑ╟Ñ╒Ñ⌐Ñδ
Ñ╚ñ╬░·┐⌠Ñ»ÑΘÑ╣ñ≥╗²ñ─íú
=end #'#"#`#
=begin undocumented
=== Ñ╟Ñ╒Ñ⌐ÑδÑ╚ѬÑ╫Ñ╖ÑτÑ≤
Ñ╒Ñ⌐ÑδÑ╚ñ╟╟º╝▒ñ╡ñ∞ñδñ¼íóѬÑ╫Ñ╖ÑτÑ≤Ñ╡Ñ▐ÑΩñ╦ñ╧╕╜ñ∞ñ╩ññѬÑ╫Ñ╖ÑτÑ≤íú
--- --help
ѬÑ╫Ñ╖ÑτÑ≤Ñ╡Ñ▐ÑΩñ≥╔╜╝¿ñ╣ñδíú
--- --version
(({::Version})) ñ¼─Ω╡┴ñ╡ñ∞ñ╞ñññ∞ñ╨Ñ╨í╝Ñ╕ÑτÑ≤╛≡╩≤ñ≥╔╜╝¿ñ╣ñδíú
=end #'#"#`#
=begin
=== Ñ»ÑΘÑ╣ÑßÑ╜Ñ├Ñ╔
=end #'#"#`#
=begin
--- OptionParser.with([banner[, width[, indent]]]) [{...}]
┐╖ñ╖ññÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ñ≥║ε└«ñ╖ñ╞íóÑñÑ╞Ñ∞í╝Ñ┐ñ╚ñ╖ñ╞╕╞ñ╨ñ∞ñ╞ñññδñ╚ñ¡ñ╦
ñ╧Ñ╓ÑφÑ├Ñ»ñ≥ñ╜ñ╬ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ñ╬Ñ│Ñ≤Ñ╞Ñ»Ñ╣Ñ╚ñ╟╔╛▓┴ñ╖ñ╞ñ½ñΘíó╩╓ñ╣íú
ñ│ñ╬╞░║εñ╧░╩┴░ñ╬(({new}))ñ╚╞▒ñ╕ñ└ñ¼íó((*depricated*))ñ╩ÑßÑ╜Ñ├Ñ╔íú
cf. ((<OptionParser#initialize>))
:Parameters:
: ((|banner|))
Ñ╨Ñ╩í╝ÑßÑ├Ñ╗í╝Ñ╕íú
: ((|width|))
Ñ╡Ñ▐ÑΩñ╬╔²íú
: ((|indent|))
Ñ╡Ñ▐ÑΩñ╬ÑñÑ≤Ñ╟Ñ≤Ñ╚╩╕╗·╬≤íú
: (({Block}))
║ε└«ñ╖ñ┐ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ñ╬Ñ│Ñ≤Ñ╞Ñ»Ñ╣Ñ╚ñ╟╔╛▓┴ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
--- OptionParser.new([banner[, width[, indent]]]) [{...}]
ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ñ≥╜Θ┤ⁿ▓╜ñ╣ñδíúÑñÑ╞Ñ∞í╝Ñ┐ñ╚ñ╖ñ╞╕╞ñ╨ñ∞ñ╞ñññδ╛∞╣τñ╧íó╝½╩¼╝½
┐╚ñ≥┼╧ñ╣íú
:Parameters:
: ((|banner|))
Ñ╨Ñ╩í╝ÑßÑ├Ñ╗í╝Ñ╕íúÑ╟Ñ╒Ñ⌐ÑδÑ╚ñ╧(({nil}))íú
: ((|width|))
Ñ╡Ñ▐ÑΩñ╬╔²íúÑ╟Ñ╒Ñ⌐ÑδÑ╚ñ╧32
: ((|indent|))
Ñ╡Ñ▐ÑΩñ╬ÑñÑ≤Ñ╟Ñ≤Ñ╚íúÑ╟Ñ╒Ñ⌐ÑδÑ╚ñ╧╢⌡╟≥4╕─íú
: (({Block}))
((|self|))ñ¼┼╧ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
--- OptionParser.terminate([arg])
ѬÑ╫Ñ╖ÑτÑ≤ñ╬▓≥└╧ñ≥╜¬╬╗ñ╡ñ╗ñδíú╛╩╬¼▓─╟╜ñ╩((|arg|))ñ¼═┐ñ¿ñΘñ∞ñ╞ñññδñ╚íó
Ñ│Ñ▐Ñ≤Ñ╔ÑΘÑñÑ≤░·┐⌠ñ╦╠ßñ╡ñ∞ñδíú
:Parameters:
: ((|arg|))
║╟╜Θñ╬ѬÑ╫Ñ╖ÑτÑ≤ñ╟ñ╩ññ░·┐⌠ñ╚ñ╖ñ╞╠ßñ╡ñ∞ñδ╩╕╗·╬≤íú
=end #'#"#`#
=begin
--- OptionParser.accept(t, [pat]) {...}
--- OptionParser#accept(t, [pat]) {...}
╗╪─Ωñ╖ñ┐Ñ»ÑΘÑ╣ñ╬ѬÑ╫Ñ╖ÑτÑ≤░·┐⌠ñ≥╝⌡ñ▒╔╒ñ▒ñΘñ∞ñδñΦñªñ╦ñ╣ñδíú
:Parameters:
: ((|t|))
░·┐⌠Ñ»ÑΘÑ╣ñ≥╗╪─Ωñ╣ñδѬÑ╓Ñ╕ѺѻÑ╚íó─╠╛∩ñ╧(({Class}))íú
: ((|pat|))
░·┐⌠ñ╬Ñ╤Ñ┐í╝Ñ≤íú((|t|))ñ¼(({match}))ñ≥╗²ñ├ñ╞ñññ∞ñ╨ñ╜ñ∞ñ¼Ñ╟Ñ╒Ñ⌐ÑδÑ╚íú
: (({Block}))
░·┐⌠ñ╬╩╕╗·╬≤ñ≥╝⌡ñ▒╝Φñ├ñ╞═╫╡ßñ╡ñ∞ñδÑ»ÑΘÑ╣ñ╦╩╤┤╣ñ╣ñδíú
=end #'#"#`#
=begin
--- OptionParser.reject(t)
--- OptionParser#reject(t)
╗╪─Ωñ╖ñ┐Ñ»ÑΘÑ╣ñ╬ѬÑ╫Ñ╖ÑτÑ≤░·┐⌠ñ≥╝⌡ñ▒╔╒ñ▒ñ╩ñññΦñªñ╦ñ╣ñδíú
:Parameters:
: ((|t|))
░·┐⌠Ñ»ÑΘÑ╣ñ≥╗╪─Ωñ╣ñδѬÑ╓Ñ╕ѺѻÑ╚íú
=end #'#"#`#
=begin private
--- OptionParser.yieldproc(*args) {block}
(({Proc}))ñΣ(({Method}))ñ≥ÑñÑ╞Ñ∞í╝Ñ┐Ñ╓ÑφÑ├Ñ»ñ╚ñ╖ñ╞((|args|))ñ≥░·┐⌠ñ╦ñ╖ñ╞╕╞ñ╙╜╨ñ╣íú
:Parameters:
: ((|*args|))
(({Block}))ñ╪ñ╬░·┐⌠íú
: (({Block}))
╕╞ñ╙╜╨ñ╣(({Proc}))ñ½(({Method}))íúÑ╓ÑφÑ├Ñ»ñ╚ñ╖ñ╞┼╧ñ╡ñ∞ñ╩ñ▒ñ∞ñ╨ñ╩ñΘñ╩ññíú
=end #'#"#`#
=begin
=== ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ÑßÑ╜Ñ├Ñ╔
=end #'#"#`#
=begin
--- OptionParser#banner
--- OptionParser#banner=(heading)
Ñ╡Ñ▐ÑΩñ╬└Φ╞¼ñ╦╜╨╬╧ñ╡ñ∞ñδÑ╨Ñ╩í╝íú
--- OptionParser#summary_width
--- OptionParser#summary_width=(width)
Ñ╡Ñ▐ÑΩñ╬ѬÑ╫Ñ╖ÑτÑ≤ÑΩÑ╣Ñ╚╔⌠╩¼ñ╬╔²íú(({Numeric}))ñ╟ñóñδ═╫ñ¼ñóñδíú
--- OptionParser#summary_indent
--- OptionParser#summary_indent=(indent)
Ñ╡Ñ▐ÑΩñ╬ÑñÑ≤Ñ╟Ñ≤Ñ╚íú(({String}))ñ╟ñ╩ñ▒ñ∞ñ╨ñ╩ñΘñ╩ññ(ñΓñ╖ñ»ñ╧
(({String}))ñ≥(({+}))ñ╟ñ¡ñδÑΓÑ╬)íú
--- OptionParser#program_name
--- OptionParser#program_name=(name)
Ñ¿ÑΘí╝ÑßÑ├Ñ╗í╝Ñ╕ñΣÑ╟Ñ╒Ñ⌐ÑδÑ╚ñ╬Ñ╨Ñ╩í╝ñ╟╜╨╬╧ñ╡ñ∞ñδÑ╫ÑφÑ░ÑΘÑα╠╛íú
Ñ╟Ñ╒Ñ⌐ÑδÑ╚ñ╧(({$0}))íú
=end #'#"#`#
=begin
--- OptionParser#top
((<on>))/((<on_head>))íó((<accept>))/((<reject>))ñ╬┬╨╛▌íú
=end #'#"#`#
=begin
--- OptionParser#base
((<on_tail>))ñ╬┬╨╛▌íú
=end #'#"#`#
=begin
--- OptionParser#new
┐╖ñ╖ññ(({List}))ñ≥─╔▓├ñ╣ñδíú
=end #'#"#`#
=begin
--- OptionParser#remove
║╟╕σñ╬(({List}))ñ≥║∩╜ⁿñ╣ñδíú
=end #'#"#`#
=begin
--- OptionParser#summarize(to = [], width = @summary_width, max = width - 1, indent = @summary_indent)
ѬÑ╫Ñ╖ÑτÑ≤Ñ╡Ñ▐ÑΩñ≥((|to|))ñ╦║εñδíú((|to|))ñ≥╩╓ñ╣íú
:Parameters:
: ((|to|))
╜╨╬╧└Φíú((|<<|))ÑßÑ╜Ñ├Ñ╔ñ¼╔¼═╫íúÑ╟Ñ╒Ñ⌐ÑδÑ╚ñ╧(({[]}))íú
: ((|width|))
║╕┬ªíóѬÑ╫Ñ╖ÑτÑ≤ÑΩÑ╣Ñ╚╔⌠ñ╬╔²íúÑ╟Ñ╒Ñ⌐ÑδÑ╚ñ╧((|@summary_width|))íú
: ((|max|))
║╕┬ªñ╟╗╚ñ¿ñδ║╟┬τ╔²íúÑ╟Ñ╒Ñ⌐ÑδÑ╚ñ╧(({((|width|)) - 1}))íú
: ((|indent|))
ÑñÑ≤Ñ╟Ñ≤Ñ╚íúÑ╟Ñ╒Ñ⌐ÑδÑ╚ñ╧((|@summary_indent|))íú
: (({Block}))
ÑñÑ╞Ñ∞í╝Ñ┐ñ╚ñ╖ñ╞╕╞ñ╨ñ∞ñ╞ñññδñ╚íó│╞╣╘ñ┤ñ╚ñ╦╕╞ñ╙╜╨ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
--- OptionParser#to_str
--- OptionParser#to_s
ѬÑ╫Ñ╖ÑτÑ≤Ñ╡Ñ▐ÑΩ╩╕╗·╬≤ñ≥╩╓ñ╣íú
=end #'#"#`#
=begin
--- OptionParser#to_a
ѬÑ╫Ñ╖ÑτÑ≤Ñ╡Ñ▐ÑΩñ≥╟█╬≤ñ╚ñ╖ñ╞╩╓ñ╣íú
=end #'#"#`#
=begin
--- OptionParser#switch
((<OptionParser::Switch>))ñ≥║εñδíú
:Parameters:
: ((|opts|))
ѬÑ╫Ñ╖ÑτÑ≤─Ω╡┴íú
: ░·┐⌠Ñ╣Ñ┐ÑñÑδ
((<OptionParser::ArgumentStyle>))╗▓╛╚íú
: ░·┐⌠Ñ╤Ñ┐í╝Ñ≤
╝⌡ñ▒╔╒ñ▒ñΘñ∞ñδѬÑ╫Ñ╖ÑτÑ≤░·┐⌠ñ╬╖┴╝░íú((<OptionParser.accept>))ñΣ
((<OptionParser#accept>))ñ╟ñóñΘñ½ñ╕ñß─Ω╡┴ñ╡ñ∞ñ╞ñññδñ½íó
(({Regexp}))ñ╩ñ╔ñ╬(({match}))ÑßÑ╜Ñ├Ñ╔ñ≥╗²ñ─ѬÑ╓Ñ╕ѺѻÑ╚ñ╟ñ╩ñ▒ñ∞
ñ╨ñ╩ñΘñ╩ññíúñ│ñ∞ñ╧░∞┼┘ñ└ñ▒╗╪─Ωñ╟ñ¡ñδ(ñΓñ╖ñ╩ñ▒ñ∞ñ╨(({Object}))ñ╚
ñ▀ñ╩ñ╡ñ∞ñδ)ñ¼íóñ╡ñΓñ╩ñ▒ñ∞ñ╨(({ArgumentError}))ñ≥╡»ñ│ñ╣íú
cf. ((<░·┐⌠ñ╚ñ╖ñ╞╝⌡ñ▒╔╒ñ▒ñΘñ∞ñδÑ»ÑΘÑ╣>)).
: Hash
: Array
╝ΦñΩ╞└ñδ░·┐⌠ñ╬├═íú
: Proc
: Method
((*handler*))ñ≥═┐ñ¿ñδ╩╠ñ╬╝Ω├╩íú
: "--switch=MANDATORY", "--switch[=OPTIONAL]", "--switch"
ñ╜ñ∞ñ╛ñ∞░·┐⌠ñ¼╔¼┐▄íó╛╩╬¼▓─╟╜íó╠╡ñ╖ñ╬─╣╖┴╝░Ñ╣ÑñÑ├Ñ┴íú
: "-xMANDATORY", "-x[OPTIONAL]", "-x"
ñ╜ñ∞ñ╛ñ∞░·┐⌠ñ¼╔¼┐▄íó╛╩╬¼▓─╟╜íó╠╡ñ╖ñ╬├╗╖┴╝░Ñ╣ÑñÑ├Ñ┴íú
: "-[a-z]MANDATORY", "-[a-z][OPTIONAL]", "-[a-z]"
Ñ¡ÑπÑΘÑ»Ñ┐Ñ»ÑΘÑ╣ñ╦Ñ▐Ñ├Ñ┴ñ╣ñδ├╗╖┴╝░ñ╬Ñ╣ÑñÑ├Ñ┴
(└╡╡¼╔╜╕╜┴┤ñ╞ñ¼╗╚ñ¿ñδñ∩ñ▒ñ╟ñ╧ñ╩ññ)íú
: "=MANDATORY", "=[OPTIONAL]"
░·┐⌠Ñ╣Ñ┐ÑñÑδíú
: "description", ...
ñ│ñ╬Ñ╣ÑñÑ├Ñ┴ñ╬└Γ╠└íú
: (({Block}))
ñ│ñ╬Ñ╣ÑñÑ├Ñ┴ñ¼╗╪─Ωñ╡ñ∞ñ┐ñ╚ñ¡ñ╦╕╞ñ╙╜╨ñ╡ñ∞ñδ((*handler*))íú
=end #'#"#`#
=begin
--- OptionParser#on(*opts) [{...}]
--- OptionParser#def_option(*opts) [{...}]
--- OptionParser#on_head(*opts) [{...}]
--- OptionParser#def_head_option(*opts) [{...}]
--- OptionParser#on_tail(*opts) [{...}]
--- OptionParser#def_tail_option(*opts) [{...}]
ѬÑ╫Ñ╖ÑτÑ≤Ñ╣ÑñÑ├Ñ┴ñ╚Ñ╧Ñ≤Ñ╔ÑΘñ≥─Ω╡┴ñ╣ñδíú(({on_head}))íó(({def_head_option}))ñ╚
(({on_tail}))íó(({def_tail_option}))ñ╧ñ╜ñ∞ñ╛ñ∞Ñ╣ÑñÑ├Ñ┴ñ≥Ñ╡Ñ▐ÑΩñ╬║╟
╜Θñ╚║╟╕σñ╦ñ¬ñ»íú
cf. ((<OptionParser#switch>)).
=end #'#"#`#
=begin
--- OptionParser#order(*argv) [{...}]
--- OptionParser#order!([argv = ARGV]) [{...}]
((|argv|))ñ≥╜╨ñ╞═Φñδ╜τ╚╓ñ╦ñ╖ñ┐ñ¼ñ├ñ╞▓≥└╧ñ╣ñδíúѬÑ╫Ñ╖ÑτÑ≤ñ╟ñ╩ññ░·┐⌠ñ¼
ñóñδñ╚íóÑñÑ╞Ñ∞í╝Ñ┐ñ╚ñ╖ñ╞╕╞ñ╨ñ∞ñ╞ñññ∞ñ╨ñ╜ñ∞ñ≥┼╧ñ╖ñ╞╕╞ñ╙╜╨ñ╣íúñ╡ñΓñ╩ñ▒
ñ∞ñ╨▓≥└╧ñ≥╜¬╬╗ñ╣ñδíú
▓≥└╧ñ╡ñ∞ñ║ñ╦╗─ñ├ñ┐((|argv|))ñ≥╩╓ñ╣íú
(({order!}))ñ╧╟█╬≤╝½┐╚ñ≥╝⌡ñ▒╝Φñ├ñ╞íóÑ╣ÑñÑ├Ñ┴ñ≥╟╦▓⌡┼¬ñ╦╝ΦñΩ╜ⁿñ»íú
Ñ╟Ñ╒Ñ⌐ÑδÑ╚ñ╟ñ╧((|ARGV|))ñ≥▓≥└╧ñ╣ñδíú
:Parameters:
: ((|argv|))
▓≥└╧ñ╣ñδÑ│Ñ▐Ñ≤Ñ╔ÑΘÑñÑ≤░·┐⌠ñ╬╟█╬≤íú
: (({Block}))
ѬÑ╫Ñ╖ÑτÑ≤ñ╟ñ╩ññ░·┐⌠ñ¼ñóñδñ╚╕╞ñ╙╜╨ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
--- OptionParser#permute(*argv)
--- OptionParser#permute!([argv = ARGV])
((|argv|))ñ≥╩┬ñ╙╩╤ñ¿ÑΓí╝Ñ╔ñ╟▓≥└╧ñ╖ñ╞íóѬÑ╫Ñ╖ÑτÑ≤ñ╟ñ╩ññ░·┐⌠ñ╬ÑΩÑ╣Ñ╚ñ≥
╩╓ñ╣íú
(({permute!}))ñ╧╟█╬≤╝½┐╚ñ≥╝⌡ñ▒╝Φñ├ñ╞íóÑ╣ÑñÑ├Ñ┴ñ≥╟╦▓⌡┼¬ñ╦╝ΦñΩ╜ⁿñ»íú
Ñ╟Ñ╒Ñ⌐ÑδÑ╚ñ╟ñ╧((|ARGV|))ñ≥▓≥└╧ñ╣ñδíú
:Parameters:
: ((|argv|))
▓≥└╧ñ╣ñδÑ│Ñ▐Ñ≤Ñ╔ÑΘÑñÑ≤░·┐⌠ñ╬╟█╬≤íú
=end #'#"#`#
=begin
--- OptionParser#parse(*argv)
--- OptionParser#parse!([argv = ARGV])
┤─╢¡╩╤┐⌠(({POSIXLY_CORRECT}))ñ¼Ñ╗Ñ├Ñ╚ñ╡ñ∞ñ╞ñññδñ╚ñ¡ñ╧╜τ╜°─╠ñΩñ╦íóñ╜
ñ∞░╩│░ñ╧╩┬ñ┘╩╤ñ¿ÑΓí╝Ñ╔ñ╟íó((|argv|))ñ≥▓≥└╧ñ╣ñδíú
(({parse!}))ñ╧╟█╬≤╝½┐╚ñ≥╝⌡ñ▒╝Φñ├ñ╞íóÑ╣ÑñÑ├Ñ┴ñ≥╟╦▓⌡┼¬ñ╦╝ΦñΩ╜ⁿñ»íú
Ñ╟Ñ╒Ñ⌐ÑδÑ╚ñ╟ñ╧((|ARGV|))ñ≥▓≥└╧ñ╣ñδíú
:Parameters:
: ((|argv|))
▓≥└╧ñ╣ñδÑ│Ñ▐Ñ≤Ñ╔ÑΘÑñÑ≤░·┐⌠ñ╬╟█╬≤íú
=end #'#"#`#
=begin private
--- OptionParser#visit(id, *args) {block}
(({Ñ╣Ñ┐Ñ├Ñ»}))ñ╦┬╨ñ╖ñ╞ÑßÑ╜Ñ├Ñ╔((|id|))ñ≥((|*args|))ñ╚╢ªñ╦╕╞ñ╙╜╨ñ╣íú
:Parameters:
: ((|id|))
(({Ñ╣Ñ┐Ñ├Ñ»}))ñ╬│╞═╫┴╟ñ╦┬╨ñ╖ñ╞╕╞ñ╙╜╨ñ╣ÑßÑ╜Ñ├Ñ╔íú
: ((|*args|))
((|id|))ñ╦┼╧ñ╡ñ∞ñδíú
: (({Block}))
((|id|))ñ╦┼╧ñ╡ñ∞ñδíú
=end #'#"#`#
=begin private
--- OptionParser#search(id, k)
((|k|))ñ≥((|id|))ñ╬Ñ╧Ñ├Ñ╖Ñσñ╬Ñ╣Ñ┐Ñ├Ñ»ñ½ñΘ├╡ñ╖ñ╞╕½╔╒ñ½ñ├ñ┐├═ñ≥╩╓ñ╣íú
ÑñÑ╞Ñ∞í╝Ñ┐ñ╚ñ╖ñ╞╕╞ñ╨ñ∞ñ╞ñññδñ╚ñ╜ñ╬├═ñ╟yieldñ╣ñδíú
:Parameters:
: ((|id|))
╕í║≈ñ╣ñδÑ╞í╝Ñ╓Ñδíú
: ((|k|))
╕í║≈ñ╣ñδÑ¡í╝íú
: (({Block}))
Ñ¡í╝ñ¼╕½╔╒ñ½ñ├ñ┐ñ╚ñ¡ñ╦├═ñ╟yieldñ╡ñ∞ñδíú
=end #'#"#`#
=begin private
--- OptionParser#complete(opt)
╛╩╬¼ñ╡ñ∞ñ╞ñññδ─╣╖┴╝░ѬÑ╫Ñ╖ÑτÑ≤Ñ╣ÑñÑ├Ñ┴ñ≥╩Σ┤░ñ╖ñ╞íó└╡╡¼▓╜ñ╡ñ∞ñ┐Ñ╣ÑñÑ├
Ñ┴╠╛ñ╚Ñ╣ÑñÑ├Ñ┴ѬÑ╓Ñ╕ѺѻÑ╚((<OptionParser::Switch>))ñ╬Ñ┌Ñóñ≥╩╓ñ╣íú
:Parameters:
: ((|opt|))
─╣╖┴╝░ѬÑ╫Ñ╖ÑτÑ≤Ñ╣ÑñÑ├Ñ┴((({'--'}))ñ╧ñ╩ñ╖)íú
=end #'#"#`#
=begin
= ░·┐⌠ñ╚ñ╖ñ╞╝⌡ñ▒╔╒ñ▒ñΘñ∞ñδÑ»ÑΘÑ╣
=end #'#"#`#
=begin
: Object
╟ñ░╒ñ╬╩╕╗·╬≤íó╩╤┤╣ñ╡ñ∞ñ╩ññíú▓┐ñΓ╗╪─Ωñ╖ñ╩ñññ╚ñ│ñ∞ñ╦ñ╩ñδíú
=end #'#"#`#
=begin
: String
╟ñ░╒ñ╬╢⌡ñ╟ñ╩ññ╩╕╗·╬≤íó╩╤┤╣ñ╡ñ∞ñ╩ññíú
=end #'#"#`#
=begin
: Integer
Ruby/C┼¬ñ╩└░┐⌠íó(({0}))ñ╟╗╧ñ▐ñ∞ñ╨8┐╩┐⌠íó(({0b}))ñ╟╗╧ñ▐ñ∞ñ╨2┐╩┐⌠íó
(({0x}))ñ╟╗╧ñ▐ñ∞ñ╨16┐╩┐⌠íóñ╜ñ∞░╩│░ñ╧10┐╩┐⌠ñ╚ñ▀ñ╩ñ╣íú╔Σ╣µñΓ╔╒ñ▒ñΘñ∞ñδíú
(({Integer}))ñ╦╩╤┤╣ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
: Float
╝┬┐⌠╖┴╝░íó(({Float}))ñ╦╩╤┤╣ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
: Numeric
╚╞═╤ñ╬┐⌠├═íó└░┐⌠╖┴╝░ñ╩ñΘ(({Integer}))íó╝┬┐⌠╖┴╝░ñ╩ñΘ
(({Float}))ñ╦╩╤┤╣ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
: OptionParser::DecimalInteger
10┐╩└░┐⌠íó(({Integer}))ñ╦╩╤┤╣ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
: OptionParser::OctalInteger
Ruby/C┼¬ñ╩ 8/16/2┐╩└░┐⌠íó(({Integer}))ñ╦╩╤┤╣ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
: OptionParser::DecimalNumeric
10┐╩└░┐⌠í┐╝┬┐⌠╖┴╝░íú└░┐⌠╖┴╝░ñ╩ñΘ(({Integer}))íó╝┬┐⌠╖┴╝░ñ╩ñΘ
(({Float}))ñ╦╩╤┤╣ñ╡ñ∞ñδíú
=end #'#"#`#
=begin
: TrueClass
Ñ╓í╝ÑΩÑóÑ≤Ñ╣ÑñÑ├Ñ┴íó┬╕║▀ñ╣ñ∞ñ╨┐┐íóñ▐ñ┐ñ╧(({no-}))ñ¼┴░ñ╦╔╒ñññ╞ñññ∞ñ╨╡╢íú
ñΓñ╖ñ»ñ╧(({yes/no/true/false}))ñ╟╝¿ñ╡ñ∞ñδ├═íú
: FalseClass
((<TrueClass>))ñ╚╗≈ñ╞ñññδñ¼íóÑ╟Ñ╒Ñ⌐ÑδÑ╚ñ╬├═ñ╧(({false}))íú
=end #'#"#`#
=begin
: Array
","╢Φ└┌ñΩ╩╕╗·╬≤íú
=end #'#"#`#
=begin
= ╬π│░
=end #'#"#`#
=begin
== ((:OptionParser::ParseError:))
((<OptionParser>))ñ╟╚»└╕ñ╣ñδ╬π│░ñ╬Ñ┘í╝Ñ╣Ñ»ÑΘÑ╣íú
=== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
(({RuntimeError}))
=== ─Ω┐⌠
: OptionParser::ParseError::Reason
Ñ¿ÑΘí╝╕╢░°íú
=== ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ÑßÑ╜Ñ├Ñ╔
--- OptionParser::ParseError#reason
Ñ¿ÑΘí╝ñ╬═²═│ñ≥╩╓ñ╣íú
--- OptionParser::ParseError#inspect
▓─╞╔╖┴╝░ñ╬╩╕╗·╬≤ñ≥╩╓ñ╣íú
--- OptionParser::ParseError#message
--- OptionParser::ParseError#to_s
--- OptionParser::ParseError#to_str
Ñ╟Ñ╒Ñ⌐ÑδÑ╚ñ╬╩╕╗·╬≤▓╜ÑßÑ╜Ñ├Ñ╔íó╔╕╜α┼¬ñ╩Ñ¿ÑΘí╝ÑßÑ├Ñ╗í╝Ñ╕═╤íú
=end #'#"#`#
=begin
== ((:OptionParser::AmbiguousOption:))
╩Σ┤░ñ¼░∞░╒ñ╦╖ΦñßñΘñ∞ñ╩ñññ╚ñ¡ñ╦╚»└╕ñ╣ñδíú
=== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
((<OptionParser::ParseError>))
=end #'#"#`#
=begin
== ((:OptionParser::NeedlessArgument:))
░·┐⌠ñ≥╝ΦñΘñ╩ññÑ╣ÑñÑ├Ñ┴ñ╦░·┐⌠ñ¼╗╪─Ωñ╡ñ∞ñ╞ñññ┐ñ╚ñ¡ñ╦╚»└╕ñ╣ñδíú
=== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
((<OptionParser::ParseError>))
=end #'#"#`#
=begin
== ((:OptionParser::MissingArgument:))
░·┐⌠ñ¼╔¼═╫ñ╩Ñ╣ÑñÑ├Ñ┴ñ╦░·┐⌠ñ¼╠╡ñ½ñ├ñ┐ñ╚ñ¡ñ╦╚»└╕ñ╣ñδíú
=== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
((<OptionParser::ParseError>))
=end #'#"#`#
=begin
== ((:OptionParser::InvalidOption:))
─Ω╡┴ñ╡ñ∞ñ╞ñññ╩ññÑ╣ÑñÑ├Ñ┴ñ╟╚»└╕ñ╣ñδíú
=== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
((<OptionParser::ParseError>))
=end #'#"#`#
=begin
== ((:OptionParser::InvalidArgument:))
═┐ñ¿ñΘñ∞ñ┐░·┐⌠ñ¼Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚ñ╦╣τñ∩ñ╩ñ½ñ├ñ┐ñ╚ñ¡ñ╦╚»└╕ñ╣ñδíú
=== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
((<OptionParser::ParseError>))
=end #'#"#`#
=begin
== ((:OptionParser::AmbiguousArgument:))
═┐ñ¿ñΘñ∞ñ┐░·┐⌠ñ¼░∞░╒ñ╦╖Φ─Ωñ╟ñ¡ñ╩ñ½ñ├ñ┐ñ╚ñ¡ñ╦╚»└╕ñ╣ñδíú
=== Ñ╣í╝Ñ╤í╝Ñ»ÑΘÑ╣
((<OptionParser::InvalidArgument>))
=end #'#"#`#
=begin
= ñ╜ñ╬┬╛
=end #'#"#`#
=begin
== ((:OptionParser::Arguable:))
Ñ│Ñ▐Ñ≤Ñ╔ÑΘÑñÑ≤░·┐⌠ñ╬╟█╬≤ñ╦íó╝½╩¼╝½┐╚ñ≥Ñ╤í╝Ñ╣ñ╣ñδ╡í╟╜ñ≥│╚─Ññ╣ñδíú
(({optparse.rb}))ñ≥(({require}))ñ╣ñδñ╚íó((|ARGV|))ñ¼│╚─Ññ╡ñ∞ñ╞ñññδíú
=end #'#"#`#
=begin
--- OptionParser::Arguable#options=
((<OptionParser>))ѬÑ╓Ñ╕ѺѻÑ╚ñ≥Ñ╗Ñ├Ñ╚ñ╣ñδíú
((|opt|))ñ¼(({false}))ñ½(({nil}))ñ╩ñΘíó
((<OptionParser::Arguable#options>))ÑßÑ╜Ñ├Ñ╔ñ╚
((<OptionParser::Arguable#options=>))ÑßÑ╜Ñ├Ñ╔ñ¼╠ñ─Ω╡┴ñ╦ñ╡ñ∞ñδíú
ñ─ñ▐ñΩíóñ│ñ╬Ñ∞Ñ╖í╝Ñ╨╖╨═│ñ╟((<OptionParser>))ѬÑ╓Ñ╕ѺѻÑ╚ñ╦ÑóÑ»Ñ╗Ñ╣
ñ╣ñδ╩²╦íñ╧╠╡ñ»ñ╩ñδíú
=end #'#"#`#
=begin
--- OptionParser::Arguable#options [{...}]
╝┬║▌ñ╬((<OptionParser>))ѬÑ╓Ñ╕ѺѻÑ╚íú
└▀─Ωñ╡ñ∞ñ╞ñññ╩ñ▒ñ∞ñ╨╝½╞░┼¬ñ╦║εñΘñ∞ñδíú
ÑñÑ╞Ñ∞í╝Ñ┐ñ╚ñ╖ñ╞╕╞ñ╨ñ∞ñδñ╚íó((<OptionParser>))ѬÑ╓Ñ╕ѺѻÑ╚ñ╚╢ªñ╦╕╞ñ╙╜╨ñ╖ñ╞íó
ñ╜ñ╬╖δ▓╠ñ≥╠ßñΩ├═ñ╚ñ╣ñδíúñ│ñ╬ñ╚ñ¡íó((<OptionParser::ParseError>))╬π│░ñ╧╩Σ┬¡ñ╡ñ∞íó
Ñ¿ÑΘí╝ÑßÑ├Ñ╗í╝Ñ╕ñ≥((<STDERR>))ñ╦╔╜╝¿ñ╣ñδñ└ñ▒ñ╟(({nil}))ñ≥╩╓ñ╣íú
:Parameters:
: (({block}))
└▀─Ωñ╡ñ∞ñ╞ñññδ((<OptionParser>))ñ╬ÑñÑ≤Ñ╣Ñ┐Ñ≤Ñ╣ñ╚ñ╚ñΓñ╦╕╞ñ╨ñ∞ñδíú
=end #'#"#`#
=begin
--- OptionParser::Arguable#order!
--- OptionParser::Arguable#permute!
--- OptionParser::Arguable#parse!
((|self|))ñ≥╟╦▓⌡┼¬ñ╦Ñ╤í╝Ñ╣ñ╖ñ╞íó((|self|))ñ≥╩╓ñ╣íúÑ╤í╝Ñ╣ñ╡ñ∞ñ╩ñ½ñ├ñ┐
╩╕╗·╬≤ñ└ñ▒ñ≥╗─ñ╣íú
=end #'#"#`#
=begin
== ((:OptionParser::Acceptables:))
((<OptionParser>))ñ╟─Ω╡┴ñ╡ñ∞ñ╞ñññδíó░·┐⌠ñ╚ñ╖ñ╞╝⌡ñ▒╔╒ñ▒ñΘñ∞ñδÑ╤Ñ┐í╝Ñ≤ñ╬─Ω┐⌠ñ≥┤▐ñ≤ñ╟ñññδíú
║úñ╬ñ╚ñ│ñφ(({DecimalInteger}))íó(({OctalInteger}))íó(({DecimalNumeric}))íú
((<░·┐⌠ñ╚ñ╖ñ╞╝⌡ñ▒╔╒ñ▒ñΘñ∞ñδÑ»ÑΘÑ╣>))╗▓╛╚íú
=end #'#"#`#
=begin example
= Example
<<< opttest.rb
=end #'#"#`#