Module: Commander::HelpFormatter
- Defined in:
- lib/commander/help_formatters/base.rb,
lib/commander/help_formatters.rb,
lib/commander/help_formatters/terminal.rb,
lib/commander/help_formatters/terminal_compact.rb
Overview
Help Formatter
Commander’s help formatters control the output when either the help command, or –help switch are called. The default formatter is Commander::HelpFormatter::Terminal.
Defined Under Namespace
Classes: Base, Terminal, TerminalCompact
Class Method Summary collapse
Class Method Details
.indent(amount, text) ⇒ Object
9 10 11 |
# File 'lib/commander/help_formatters.rb', line 9 def indent amount, text text.gsub("\n", "\n" + (' ' * amount)) end |