def ShouldPrintAncestorFlag(arg):
  """Determine if an ancestor flag should be printed in a subcommand.

  This is a temporary hack to prevent these flags from showing up in
  sub-command helps.  Proper support for marking flags as global and
  rationalizing where they will be printed will be in an upcoming CL.

  Args:
    arg: The argparse argument that is to be printed.

  Returns:
    True if is should be printed, False otherwise.
  """
  return arg.option_strings[0] not in ['--user-output-enabled', '--verbosity']