lib/subcommand.rb
##
# specify a single command and all its options
# If multiple names are given, they are treated as aliases.
# Do repeatedly for each command
# Yields the optionparser
specify a single command and all its options
If multiple names are given, they are treated as aliases.
Do repeatedly for each command
Yields the optionparser
specify a single command and all its options If multiple names are given they are treated as aliases . Do repeatedly for each command Yields the optionparser
def _check_alias cmd
    alas = @aliases[cmd]
    if alas
      case alas
      when Array
        cmd = alas.shift
        ARGV.unshift alas.shift unless alas.empty?
      else
        cmd = alas
      end
    end
    sc = @commands[cmd] if cmd
    return sc, cmd
  end
def _check_alias cmd alas = @aliases [ cmd ] if alas case alas when Array cmd = alas . shift ARGV . unshift alas . shift unless alas . empty? else cmd = alas end end sc = @commands [ cmd ] if cmd return sc , cmd end
specify a single command and all its options
If multiple names are given, they are treated as aliases.
specify a single command and all its options If multiple names are given they are treated as aliases .
#$stderr.puts "195 alas: #{alas} " #$stderr.puts "Array cmd: #{cmd} " #$stderr.puts "ARGV  #{ARGV} "
cmd
<not_specific>