관리-도구
편집 파일: aggregator.cpython-311.pyc
� �܋f� � � � d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddl m Z ej e� � Z de dej d ed eee dej f d�ZdS ) z�Aggregation function for CLI specified options and config file options. This holds the logic that uses the collected and merged config files and applies the user-specified command-line configuration on top of it. � N)�Optional)�Sequence)�config)� OptionManager�manager�cfg�cfg_dir�argv�returnc �� � | � g � � }t j | ||� � }| j |_ | j |_ |� � � D ]\ }}|}t ||� � s+| j | j } t | t � � sJ �| }t � dt ||d� � ||� � t |||� � ��| � ||� � S )z0Aggregate and merge CLI and config file options.z3Overriding default value of (%s) for "%s" with (%s)N)� parse_argsr �parse_config�extended_default_ignore�extended_default_select�items�hasattr�config_options_dict�dest� isinstance�str�LOG�debug�getattr�setattr) r r r r �default_values� parsed_config�config_name�value� dest_name�dest_vals �j/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/flake8/options/aggregator.py�aggregate_optionsr"