Method: OptionParser::List#pretty_print
- Defined in:
- lib/optparse.rb
#pretty_print(q) ⇒ Object
:nodoc:
841 842 843 844 845 846 847 848 849 850 |
# File 'lib/optparse.rb', line 841 def pretty_print(q) # :nodoc: q.group(1, "(", ")") do @list.each do |sw| next unless Switch === sw q.group(1, "(" + sw.pretty_head, ")") do sw.pretty_print_contents(q) end end end end |