관리-도구
편집 파일: commandline.cpython-311.pyc
� �܋f� � �v � d dl Z d dlZd dlZd dlmZ ddlmZ ddlmZm Z m Z ddlmZ dZ G d � d e� � ZdS )� N)�deepcopy� )� Configuration)�BooleanSetting� ChoiceSetting�ListSetting� )�Source)�CommandLineSourcec �n � � e Zd Z d� fd� Zd� Zd� Zd� Zd� Zd� Zd� Z d � Z d � Zd� Zd� Z dd �Z� xZS )r Nc � �� t t | � � � � � |�t j dd � | _ nbt |t � � rt j |� � | _ n3t |t t f� � r|| _ nt d� � �|| _ |pi | _ |pi | _ |pd| _ d S )Nr z-arguments must be a string or list of strings� )�superr �__init__�sys�argv� arguments� isinstance�str�shlex�split�list�tuple� TypeError�version�options�parser_options� positional)�selfr r r r r � __class__s ��n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setoptconf/source/commandline.pyr zCommandLineSource.__init__ s� �� � ���&�&�/�/�1�1�1��� �X�a�b�b�\�D�N�N� � �3� '� '� M�"�[��3�3�D�N�N� � �D�%�=� 1� 1� M�&�D�N�N��K�L�L�L�����}�"���,�2����$�*������ c � � |j | j v r,d| j |j v r| j |j d S g }d|j � � � � dd� � z }|� |� � |S )N�flagsz--%s�_�-)�namer �lower�replace�append)r �settingr$ �flags r! � get_flagszCommandLineSource.get_flags, s} � ��<�4�<�'�'��$�,�w�|�4�4�4��|�G�L�1�'�:�:������*�*�,�,�4�4�S�#�>�>�>�� ���T�����r"