9件ヒット
[1-9件を表示]
(0.084秒)
ライブラリ
- optparse (9)
クラス
- OptionParser (9)
検索結果
-
OptionParser
# parse!(argv = self . default _ argv , into: nil) -> [String] (18201.0) -
与えられた argv をパースします。
...は、
OptionParser#order! と同様に振舞います。
@param argv パースしたい引数を文字列の配列で指定します。
@param into オプションを格納するハッシュを指定します。
指定したハッシュにはオプションの名前をキーとして......ts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
ARGV # => ["-i", "-u", "-h", "test"]
opts.parse(ARGV) # => ["test"]
ARGV # => ["-i", "-u", "-h", "test"]
opts.parse!(ARGV) # => ["test"]
ARGV # => ["test"]
//}...