24件ヒット
[1-24件を表示]
(0.008秒)
検索結果
-
OptionParser
# help -> String (18123.0) -
サマリの文字列を返します。
...ire "optparse"
options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
options[:verbose] = v
end
end
puts opts.help
# => Usage: example.rb [options]
# -v, --[no-]verbose Run verb... -
OptionParser
# to _ s -> String (3023.0) -
サマリの文字列を返します。
...ire "optparse"
options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
options[:verbose] = v
end
end
puts opts.help
# => Usage: example.rb [options]
# -v, --[no-]verbose Run verb...