22件ヒット
[1-22件を表示]
(0.071秒)
クラス
- OptionParser (22)
検索結果
-
OptionParser
# to _ s -> String (15110.0) -
サマリの文字列を返します。
...サマリの文字列を返します。
//emlist[例][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:... -
OptionParser
# help -> String (10.0) -
サマリの文字列を返します。
...サマリの文字列を返します。
//emlist[例][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:...