24件ヒット
[1-24件を表示]
(0.007秒)
クラス
- OptionParser (24)
検索結果
-
OptionParser
# help -> String (18122.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 (3022.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...