Method: WavefrontCommandBase#opt_row
- Defined in:
- lib/wavefront-cli/commands/base.rb
#opt_row(opt_str, width, term_width = TW) ⇒ Object
Formats an option string.
145 146 147 148 |
# File 'lib/wavefront-cli/commands/base.rb', line 145 def opt_row(opt_str, width, term_width = TW) format(" %s %-#{width}s %s", *opt_str.split(/\s+/, 3)).opt_fold(term_width, width + 5) end |