るりまサーチ

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

別のキーワード

  1. win32ole ole_obj_help
  2. win32ole ole_show_help
  3. win32ole ole_method_help
  4. un help
  5. irb/help print_usage

ライブラリ

クラス

検索結果

OptionParser#separator(sep) -> () (18132.0)

サマリにオプションを区切るための文字列 sep を挿入します。 オプションにいくつかの種類がある場合に、サマリがわかりやすくなります。

...s.banner = "Usage: example.rb [options]"

opts.separator ""
opts.separator "Specific options:"

opts.on("-r", "--require LIBRARY") do |lib|
options.library << lib
end

opts.separator ""
opts.separator "Common options:"

opts.on_tail("-h", "--help", "Show this message") do
puts opts
exit...