Method: Boson::Command::API#basic_usage
- Defined in:
- lib/boson/command.rb
#basic_usage ⇒ Object Also known as: usage
One-line usage of args
100 101 102 103 104 105 |
# File 'lib/boson/command.rb', line 100 def basic_usage return '' if args.nil? usage_args.map {|e| (e.size < 2) ? e[0].upcase : "[#{e[0].upcase}]" }.join(' ') end |