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