code: def _get_parser(extra_args):
      
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
      dirs = appdirs.AppDirs('hangups', 'hangups')
      default_token_path = os.path.join(dirs.user_cache_dir, 'refresh_token.txt')
      parser.add_argument(
          '--token-path', default=default_token_path,
          help='path used to store OAuth refresh token'
      )
      parser.add_argument(
          '-d', '--debug', action='store_true',
          help='log detailed debugging messages'
      )
      for extra_arg in extra_args:
          parser.add_argument(extra_arg, required=True)
      return parser
docs: Return ArgumentParser with any extra arguments.