def opts_parse(cmd)
      o = {}
      cmd.scan(LitaGithub::R::OPT_REGEX).flatten.each do |opt|
        k, v = symbolize_opt_key(*opt.strip.split(':'))
        next if o.key?(k)

        # if it looks like we're using the extended option (first character is a " or '):
        #   slice off the first and last character of the string
        # otherwise:
        #   do nothing
        v = v.slice!(1, (v.length - 2)) if %w(' ").include?(v.slice(0))

        o[k] = to_i_if_numeric(v)
      end
      o
    end
def opts_parse(cmd)
      o = {}
      cmd.scan(LitaGithub::R::OPT_REGEX).flatten.each do |opt|
        k, v = symbolize_opt_key(*opt.strip.split(':'))
        next if o.key?(k)

        # if it looks like we're using the extended option (first character is a " or '):
        #   slice off the first and last character of the string
        # otherwise:
        #   do nothing
        v = v.slice!(1, (v.length - 2)) if %w(' ").include?(v.slice(0))

        o[k] = to_i_if_numeric(v)
      end
      o
    end
Parse the options in the command using the option regex

 @author Tim Heckman <tim@pagerduty.com>
 @param cmd [String] the full command line provided to Lita
 @return [Hash] the key:value pairs that were in the command string