Method: BaseApp#help_text
- Defined in:
- lib/base_app.rb
#help_text ⇒ Object
64 65 66 67 68 69 70 71 72 |
# File 'lib/base_app.rb', line 64 def help_text text = help_text_firstline command_line_arguments.each do |argspec| short, long, description, required, default_value = argspec short_text = (long =~ /=/) ? "#{short}=s" : short text << sprintf(" -%-3s | --%-20s %s%s\n", short_text, long, description, (required ? "(required)" : "")) end text end |