module SimpleCommander::HelpFormatter
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.
Public Instance Methods
indent(amount, text)
click to toggle source
# File lib/simple_commander/help_formatters.rb, line 45 def indent(amount, text) text.to_s.gsub("\n", "\n" + (' ' * amount)) end