24件ヒット
[1-24件を表示]
(0.021秒)
ライブラリ
- optparse (24)
クラス
- OptionParser (24)
検索結果
-
OptionParser
# to _ s -> String (15113.0) -
サマリの文字列を返します。
...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
# help -> String (13.0) -
サマリの文字列を返します。
...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...