Method: Webbynode::Command.options_help

Defined in:
lib/webbynode/command.rb

.options_helpObject



169
170
171
172
173
174
175
176
177
178
# File 'lib/webbynode/command.rb', line 169

def self.options_help
  help = []
  if (options = Settings[self][:options] || []).any?
    help << "Options:"
    options.each do |p|
      help << "    #{p.to_s.ljust(20)}#{p.desc}#{p.required? ? "" : ", optional"}"
    end
  end
  help.join("\n")
end