code: def _possibly_exit_with_help(parser, known_args):
          
          if known_args.core_help or known_args.core_help_all:
              parser.print_help()
              sys.exit()
docs: Check if the user passed --help[-all], if so, print a message and exit.