Method: Ditz::Operator#help
- Defined in:
- lib/operator.rb
#help(project, config, command) ⇒ Object
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/operator.rb', line 99 def help project, config, command return help_single(command) if command puts <<EOS Ditz commands: EOS ops = self.class.operations len = ops.map { |name, op| name.to_s.length }.max ops.each do |name, opts| printf " %#{len}s: %s\n", name, opts[:desc] end puts <<EOS Use 'ditz help <command>' for details. EOS end |