
    M/e                     \    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ erddl	m
Z
 d
d	Zy)z`This is a module that adds configuration to the argument parser regarding
paths for certificates    )TYPE_CHECKING)Union)config_help)flag_default)os)helpfulNc                    | j                   }| j                  }|dk(  r| j                  }t        j                  j
                  dd}|dk(  rt        d      |d<    |g ddfi | d	}t        |t              r|d
v r|} ||dt        j                  j
                  d       d }|dk(  rt        d      } |d	dgd|t        j                  j
                  d        |d	dgd|t        j                  j
                  d        |d	dt        d      t        d              |d	dt        d      t        d              |d	dt        d      d        |d	dgdt        d      t        d             y )NhelpzTPath to where certificate is saved (with certonly --csr), installed from, or revoked)typer
   certonlyauth_cert_pathdefault)pathsinstallrevoker   managez--cert-pathr   )r   r   z
--key-pathzZPath to private key for certificate installation or revocation (if account key is missing)auth_chain_pathr   z--fullchain-pathzGAccompanying path to a full certificate chain (certificate plus chain).)r   r   r
   z--chain-pathz)Accompanying path to a certificate chain.z--config-dir
config_dir)r   r
   z
--work-dirwork_dirz
--logs-dirlogs_dirzLogs directory.show_accountz--serverserver)
addverbhelp_argr   pathabspathr   
isinstancestrr   )r   r   r   cpkwargssection
default_cps         D/usr/lib/python3/dist-packages/certbot/_internal/cli/paths_parser.py_paths_parserr$      sh   
++C$\\Dv~ #H
 z*+;<<mXxXG$)>!>BGGOO9: Jz!"34
)0*277??VX)njrww8:l)C&(|J'?$&|J'? .!:|H7M"$    )r   zhelpful.HelpfulArgumentParserreturnN)__doc__typingr   r   certbot._internal.cli.cli_utilsr   r   certbot.compatr   certbot._internal.clir   r$    r%   r#   <module>r-      s$       7 8 -$$r%   