Method: Bundler::Thor.desc
- Defined in:
- lib/bundler/vendor/thor/lib/thor.rb
.desc(usage, description, options = {}) ⇒ Object
Defines the usage and the description of the next command.
Parameters
usage<String> description<String> options<String>
54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/bundler/vendor/thor/lib/thor.rb', line 54 def desc(usage, description, = {}) if [:for] command = find_and_refresh_command([:for]) command.usage = usage if usage command.description = description if description else @usage = usage @desc = description @hide = [:hide] || false end end |