22件ヒット
[1-22件を表示]
(0.033秒)
別のキーワード
ライブラリ
- optparse (22)
クラス
- OptionParser (22)
検索結果
-
OptionParser
# summary _ width=(width) (24106.0) -
サマリを表示するときの幅を整数で指定します。
...e "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summary_width # => 32
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_width = 8 # => 8
opts.summary_... -
OptionParser
# summary _ width -> Integer (6006.0) -
サマリを表示するときの幅を整数で返します。
...e "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summary_width # => 32
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_width = 8
opts.summary_width...