def main(argv):
  """A script to test Admin SDK Directory APIs: ls (show) user."""
  flags = common_flags.ParseFlags(argv, 'List info about a domain user.',
                                  AddFlags)
  http = auth_helper.GetAuthorizedHttp(flags)
  if flags.plus_domains:
    user_api = people_api.PlusDomains(http)
  else:
    user_api = users_api.UsersApiWrapper(http)
  try:
    user_api.PrintDomainUser(flags.user_email, flags.long_list)
  except admin_api_tool_errors.AdminAPIToolUserError as e:
    # Could not ls user. Details provided by api wrapper in the e string.
    log_utils.LogError('Unable to locate user %s.' % flags.user_email, e)
    sys.exit(1)
dataset/ETHPy150Open google/gfw-toolkit/toolkit/cmds/ls_user.py/main/original