22件ヒット
[1-22件を表示]
(0.114秒)
検索結果
-
OptionParser
# help -> String (6119.0) -
サマリの文字列を返します。
...mlist[例][ruby]{
require "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 verbosely
//}... -
OptionParser
# to _ s -> String (3019.0) -
サマリの文字列を返します。
...mlist[例][ruby]{
require "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 verbosely
//}...