관리-도구
편집 파일: arguments_manager.cpython-311.pyc
� �܋f� � � � d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlm Z ddlmZ ddlmZ ddlmZmZmZmZ ddlZddlmZ dd lmZmZmZmZmZm Z m!Z! dd l"m#Z#m$Z$ ddl%m&Z& ddl'm(Z( dd l)m*Z* ddl+m,Z, ddl-m.Z.m/Z/ ddl0m1Z1 ddl2m3Z3m4Z4 e j5 dk rddl6Z6nddl7Z6erddl8m9Z9 ede,f Z: G d� d� � Z;dS )�JArguments manager class used to handle command-line arguments and options.� )�annotationsN)�OrderedDict)�Sequence)�Path)� TYPE_CHECKING�Any�TextIO�Union)�utils)� _Argument�_CallableArgument�_ExtendArgument�_StoreArgument�_StoreNewNamesArgument�_StoreOldNamesArgument�_StoreTrueArgument)�UnrecognizedArgumentAction�_UnrecognizedOptionError)�_HelpFormatter)�Option)�OptionParser)�OptionsProviderMixIn)�_convert_option_to_argument�_parse_rich_type_value)�MAIN_CHECKER_NAME)�DirectoryNamespaceDict� OptionDict)� � )�_ArgumentsProviderr! c � � e Zd ZdZ d_d`d �Zedad�� � Zej dbd�� � Zedcd�� � Zej ddd�� � Zded�Z dfd�Z edgd�� � Zdhd�Z did �Z djdkd"�Zdldmd$�Z dndod)�Zdpd.�Zdqd4�Zdrd6�Z dsdtd<�Zdhd=�Z dudvdB�ZedwdF�� � ZdhdG�ZdxdJ�ZdydM�Z djdzdP�Zdjd{dS�Zd|dU�Zd}dV�Zd>dW�d~dY�Z dd�d^�Z!dS )��_ArgumentsManagerr N�prog�str�usage� str | None�description�return�Nonec �� � t j � � | _ | j | _ t j ||pd|t d�� � | _ i | _ i | _ i | _ t j � � 5 t j dt �� � | � |pd� � d d d � � n# 1 swxY w Y g | _ t! � � | _ i | _ i | _ i | _ d| _ d S )Nz%(prog)s [options]�resolve)r$ r&