def match?(pattern)
      pattern.split.each_with_index do |arg, index|
        return false unless arg == self[index]
      end
      return true
    end
def match?(pattern)
      pattern.split.each_with_index do |arg, index|
        return false unless arg == self[index]
      end
      return true
    end
Checks if a pattern (string of args)
 matches the first arguments in an Args object

 Examples:

 Args('init').match?('init')                    #=> true
 Args('add', '.').match?('add .')               #=> true
 Args('commit', '-a', '-m').match?('commit -a') #=> true

 Args('commit').match?('init')                  #=> false
 Args('commit').match?('commit -a')             #=> false

 Returns a boolean