るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.045秒)
トップページ > クエリ:ruby[x] > クラス:OptionParser[x] > 種類:インスタンスメソッド[x] > クエリ:parse[x] > クエリ:on[x] > クエリ:summary_indent=[x]

別のキーワード

  1. optparse on
  2. optionparser on
  3. tracer on
  4. thread abort_on_exception=
  5. thread abort_on_exception

ライブラリ

検索結果

OptionParser#summary_indent=(indent) (24132.0)

サマリを表示する時のインデントを文字列で指定します。

...ruby]{
require "optparse"

opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_indent =...

OptionParser#summary_indent -> String (6032.0)

サマリを表示する時のインデントを文字列で返します。

...ruby]{
require "optparse"

opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_indent =...