docs: def cmd(send, msg, args):
      """Start/stops/resume/get stopwatch
      Syntax: {command} <start|stop|resume|delete|get|list>
      """
  
      parser = arguments.ArgParser(args['config'])
      parser.set_defaults(session=args['db'])
      subparser = parser.add_subparsers()
      start_parser = subparser.add_parser('start')
      start_parser.set_defaults(func=create_stopwatch)
      stop_parser = subparser.add_parser('stop')
      stop_parser.add_argument('id', type=int)
      stop_parser.set_defaults(func=stop_stopwatch)
      resume_parser = subparser.add_parser('resume')
      resume_parser.add_argument('id', type=int)
      resume_parser.set_defaults(func=resume_stopwatch)
      delete_parser = subparser.add_parser('delete')
      delete_parser.add_argument('id', type=int)
      delete_parser.set_defaults(func=delete_stopwatch, isadmin=args['is_admin'](args['nick']))
      get_parser = subparser.add_parser('get')
      get_parser.add_argument('id', type=int)
      get_parser.set_defaults(func=get_stopwatch)
      list_parser = subparser.add_parser('list')
      list_parser.set_defaults(func=list_stopwatch, nick=args['nick'], send=send)
  
      if not msg:
          send("Please specify a command.")
          return
  
      try:
          cmdargs = parser.parse_args(msg)
      except arguments.ArgumentException as e:
          send(str(e))
          return
  
      send(cmdargs.func(cmdargs))