96件ヒット
[1-96件を表示]
(0.222秒)
ライブラリ
- optparse (60)
-
rubygems
/ command (12) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / dependency _ command (12)
クラス
-
Gem
:: Command (12) -
Gem
:: Commands :: BuildCommand (12) -
Gem
:: Commands :: DependencyCommand (12) - OptionParser (60)
検索結果
先頭5件
-
Gem
:: Command # usage -> String (18303.0) -
このメソッドはサブクラスで再定義されます。 個々の gem コマンドの使用方法を返します。
このメソッドはサブクラスで再定義されます。
個々の gem コマンドの使用方法を返します。 -
Gem
:: Commands :: BuildCommand # usage -> String (18303.0) -
使用方法を表す文字列を返します。
使用方法を表す文字列を返します。 -
Gem
:: Commands :: DependencyCommand # usage -> String (18303.0) -
使用方法を表す文字列を返します。
使用方法を表す文字列を返します。 -
OptionParser
# to _ s -> String (6215.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: example.rb [options]
# -v, --[n... -
OptionParser
# to _ a -> [String] (6208.0) -
サマリの各行を要素とした配列を返します。
...列を返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.to_a # => ["Usage: test [options]", " -i, --init\n", " -u, --update\n", " -h, --help\n"]
//}... -
OptionParser
# help -> String (3215.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: example.rb [options]
# -v, --[n... -
OptionParser
# banner -> String (3214.0) -
サマリの最初に表示される文字列を返します。
...ます。
@return サマリの最初に表示される文字列を返します。
//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
p opts.banner # => "Usage: example.rb [options]"
//}... -
OptionParser
# ver -> String (3208.0) -
program_name、version と release から生成したバージョンを表す文字列を返します。
...。
//emlist[例][ruby]{
require "optparse"
OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.program_name = "Optparse Example"
opts.version = [0, 1]
opts.release = "2019-05-01"
opts.on_tail("--version", "Show version") do
puts opts.ver # => "Optparse Examp......le 0.1 (2019-05-01)"
exit
end
opts.parse!(ARGV)
end
//}...