docs: def get_parser():
      """ Return argument parser. """
      parser = argparse.ArgumentParser(
          formatter_class=argparse.RawTextHelpFormatter,
          description=__doc__,
      )
  
      # connection to redis server
      parser.add_argument('--host', default='localhost')
      parser.add_argument('--port', default=6379, type=int)
      parser.add_argument('--db', default=0, type=int)
  
      # tools
      parser.add_argument('command', choices=(str('follow'), str('lock'),
                                              str('reset'), str('status')))
      parser.add_argument('resources', nargs='*', metavar='RESOURCE')
  
      return parser