Method: Webbynode::Command.options_help
- Defined in:
- lib/webbynode/command.rb
.options_help ⇒ Object
169 170 171 172 173 174 175 176 177 178 |
# File 'lib/webbynode/command.rb', line 169 def self. help = [] if ( = Settings[self][:options] || []).any? help << "Options:" .each do |p| help << " #{p.to_s.ljust(20)}#{p.desc}#{p.required? ? "" : ", optional"}" end end help.join("\n") end |