docs: def call():
      """Execute command line helper."""
      args = get_arguments()
  
      # Set up logging
      if args.debug:
          log_level = logging.DEBUG
      elif args.quiet:
          log_level = logging.WARN
      else:
          log_level = logging.INFO
  
      setup_logging(log_level)
  
      skybell = None
  
      try:
          # Create skybellpy instance.
          skybell = skybellpy.Skybell(username=args.username,
                                      password=args.password,
                                      get_devices=True)
  
      # # Set setting
      # for setting in args.set or []:
      #     keyval = setting.split("=")
      #     if skybell.set_setting(keyval[0], keyval[1]):
      #         _LOGGER.info("Setting %s changed to %s", keyval[0], keyval[1])
  
          # Output Json
          for device_id in args.json or []:
              device = skybell.get_device(device_id)
  
              if device:
                  # pylint: disable=protected-access
                  _LOGGER.info(device_id + " JSON:\n" +
                               json.dumps(device._device_json, sort_keys=True,
                                          indent=4, separators=(',', ': ')))
              else:
                  _LOGGER.warning("Could not find device with id: %s", device_id)
  
          # Print
          def _device_print(dev, append=''):
              _LOGGER.info("%s%s",
                           dev.desc, append)
  
          # Print out all devices.
          if args.devices:
              for device in skybell.get_devices():
                  _device_print(device)
  
          # Print out specific devices by device id.
          if args.device:
              for device_id in args.device:
                  device = skybell.get_device(device_id)
  
                  if device:
                      _device_print(device)
                  else:
                      _LOGGER.warning(
                          "Could not find device with id: %s", device_id)
  
          # Print out last motion event
          if args.activity_json:
              for device_id in args.activity_json:
                  device = skybell.get_device(device_id)
  
                  if device:
                      _LOGGER.info(device.latest(CONST.EVENT_MOTION))
                  else:
                      _LOGGER.warning(
                          "Could not find device with id: %s", device_id)
  
          # Print out avatar image
          if args.avatar_image:
              for device_id in args.avatar_image:
                  device = skybell.get_device(device_id)
  
                  if device:
                      _LOGGER.info(device.image)
                  else:
                      _LOGGER.warning(
                          "Could not find device with id: %s", device_id)
  
          # Print out last motion event image
          if args.activity_image:
              for device_id in args.activity_image:
                  device = skybell.get_device(device_id)
  
                  if device:
                      _LOGGER.info(device.activity_image)
                  else:
                      _LOGGER.warning(
                          "Could not find device with id: %s", device_id)
  
      except SkybellException as exc:
          _LOGGER.error(exc)