36件ヒット
[1-36件を表示]
(0.060秒)
別のキーワード
検索結果
-
Kernel
# help -> () (18238.0) -
ヘルプメッセージを表示します。
...ヘルプメッセージを表示します。
ruby -run -e help [COMMAND]... -
OptionParser
# help -> String (18238.0) -
サマリの文字列を返します。
...list[例][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... -
OptionParser
# to _ s -> String (3138.0) -
サマリの文字列を返します。
...list[例][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...