M/eBdZddlmZddlmZddlmZddlmZddlm Z ddlm Z ddlm Z dd lm Z erdd l mZd d Zy )z6This module creates subparsers for the argument parser) TYPE_CHECKING) interfaces) constants)_EncodeReasonAction)_user_agent_comment_type)CaseInsensitiveList) flag_default) read_file)helpfulNc ddlm}|jddtddj ||jddtdt d |jd d td t d |jdddttjjttdd|jdddtdd|jddddtdd|jddtdtd d!"|jd#d$dtd%d&|jd#d'dtd(d)|jd#d*d+d,td,tjd-.|jd#d/d+d,td,tjd0.y)1Nr)sample_user_agentz --user-agent user_agentaSet a custom user agent string for the client. User agent strings allow the CA to collect high level statistics about success rates by OS, plugin and use case, and to know when to deprecate support for past Python versions and flags. If you wish to hide this information from the Let's Encrypt server, set this to "". (default: {0}). The flags encoded in the user agent are: --duplicate, --force-renew, --allow-subset-of-names, -n, and whether any hooks are set.)defaulthelpz--user-agent-commentuser_agent_commentzAdd a comment to the default user agent string. May be used when repackaging Certbot or calling it from another tool to allow additional statistical data to be collected. Ignored if --user-agent is set. (Example: Foo-Wrapper/1.0))rtypercertonlyz--csrcsrz|Path to a Certificate Signing Request (CSR) in DER or PEM format. Currently --csr only works with the 'certonly' subcommand.revokez--reasonreasonz?Specify reason for revoking certificate. (default: unspecified))destchoicesactionrrz--delete-after-revoke store_truedelete_after_revokezjDelete certificates after revoking them, along with all previous and later versions of those certificates.)rrrz--no-delete-after-revoke store_falsezDo not delete certificates after revoking them. This option should be used with caution because the 'renew' subcommand will attempt to renew undeleted revoked certificates.)rrrrrollbackz --checkpointsNrollback_checkpointsz-Revert configuration N number of checkpoints.)rmetavarrrpluginsz--initinitzInitialize plugins.z --preparepreparezInitialize and prepare plugins.z--authenticators append_constifacesz$Limit to authenticator plugins only.)rrrconstrz --installersz Limit to installer plugins only.)certbot._internal.clientr addr formatrr rrREVOCATION_REASONSkeysrintr Authenticator Installer)r r s B/usr/lib/python3/dist-packages/certbot/_internal/cli/subparsers.py_create_subparsersr0s:GKK nl<&@*+1&1B1D*E GGKK $l;O.P %KL GKK e!49NOGKK+I,H,H,M,M,OP*L4JV X GKK' $%:;23 GKK*=*$%:;% &GKK c3$%;<DFGKK |F7K*,GKK L,y:Q68GKK ">$X. ..5[]GKK ~H$X. **1SU)r zhelpful.HelpfulArgumentParserreturnN)__doc__typingrcertbotrcertbot._internalrcertbot._internal.cli.cli_utilsrrrr r certbot._internal.clir r0r1r/r:s,< '?D?85-9Ur1