docs: def parse_config_path(args=sys.argv):
      """
      Preprocess sys.argv and extract --config argument.
      """
  
      config = CONFIG_PATH
      if '--config' in args:
          idx = args.index('--config')
          if len(args) > idx + 1:
              config = args.pop(idx + 1)
          args.pop(idx)
      return config