code: def rule_match(component, cmd):
      '''see if one rule component matches'''
      if component == cmd:
          return True
      expanded = rule_expand(component, cmd)
      if cmd in expanded:
          return True
      return Falsf rule_match(component, cmd):
      '''see if one rule component matches'''
      if component == cmd:
          return True
      expanded = rule_expand(component, cmd)
      if cmd in expanded:
          return True
      return False
docs: see if one rule component matches