るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.110秒)

別のキーワード

  1. http head2
  2. net/http head
  3. net/http head2
  4. http request_head
  5. net/http request_head

ライブラリ

クラス

検索結果

OptionParser#parse!(argv = self.default_argv) -> [String] (18107.0)

与えられた argv をパースします。

...ptionParser.new do |opts|
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...

OptionParser#parse!(argv = self.default_argv, into: nil) -> [String] (18107.0)

与えられた argv をパースします。

...ptionParser.new do |opts|
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...