관리-도구
편집 파일: parsers.cpython-311.opt-1.pyc
� IMgk, � � � d dl Z d dlZd dlZd dlmZmZ d dlmZ d dlm Z m Z mZmZm Z mZ d dlmZ d dlmZ d dlmZ d dlmZ d d lmZ G d � d� � Zd� Z G d � d� � Zd� Zd� Zd� Zd� Z d� Z!d� Z" ed�� � d� � � Z#dS )� N)� lru_cache�partial)�chain)�Any�Dict�Iterable�Iterator�Mapping�Tuple)�app)�Core)�prepare_schema)� RpcClient)�EXITCODE_NOT_FOUNDc � � e Zd Zeeeef Zd� Ze defd�� � Z e d� � � Zdefd�Zdefd�Z defd�Zdefd�Zdefd �Zd � ZdS )�SchemaToArgparsec � � || _ |� d� � | _ |� d� � | _ |� dd� � | _ |� d� � | _ |� dd� � | _ |� d� � | _ |� dd� � | _ |� d � � | _ d S ) N�allowed�default�envvarF�help� positional�rename�required�type) � _argument�get�_allowed�_default�_envvar�_help�_positional�_rename� _required�_type)�self�argument�optionss �R/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/utils/parsers.py�__init__zSchemaToArgparse.__init__ s� � �&���")�+�+�i�"8�"8�� �$�[�[��3�3�� �#�K�K��%�8�8���!�+�+�f�-�-�� �!(���\�5�!A�!A���#�K�K��1�1���&�{�{�:�u�=�=���!�+�+�f�-�-�� � � � �returnc �Z � | j r| j S d| j � dd� � z S )N�--�_�-)r"