def LsUsersCommand(flags, user_api):
  """Wrapper to invoke ls_users against Admin SDK Cloud Directory.

  Args:
    flags: argparse parsed command line flags.
    user_api: authenticated Admin SDK users collection object.
  """
  max_results = flags.first_n if 0 > flags.first_n else None
  try:
    user_api.PrintDomainUsers(flags.apps_domain, max_results=max_results)
  except APIToolDirectoryUserError as e:
    print 'Unable to list user for %s.\n%s' % (flags.apps_domain, e)
    sys.exit(1)
dataset/ETHPy150Open google/gfw-toolkit/api_sample/usertool.py/LsUsersCommand/swapped operands of `>`