Method: Pebbles::Command.global_option
- Defined in:
- lib/pebbles/command.rb
.global_option(name, *args, &blk) ⇒ Object
104 105 106 107 |
# File 'lib/pebbles/command.rb', line 104 def self.global_option(name, *args, &blk) # args.sort.reverse gives -l, --long order << { :name => name.to_s, :args => args.sort.reverse, :proc => blk } end |