るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.108秒)

別のキーワード

  1. optparse summary_width=
  2. optparse summary_width
  3. optionparser summary_width=
  4. optionparser summary_width
  5. command summary=

ライブラリ

クラス

検索結果

OptionParser#summary_width=(width) (24207.0)

サマリを表示するときの幅を整数で指定します。

...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_width # => 8
opts.summarize
# => [" -i\n", " --init\n", " -u\n", "...

OptionParser#summary_width -> Integer (6107.0)

サマリを表示するときの幅を整数で返します。

...pts.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 # =>8
opts.summarize
# => [" -i\n", " --init\n", " -u\n", "...