3 گaB@sdZddlmZddlmZddlmZddlmZddlm Z ddlm Z ddlm Z dd lm Z ertdd l mZd d d ddZd S)z6This module creates subparsers for the argument parser) TYPE_CHECKING) interfaces) constants)_EncodeReasonAction)_user_agent_comment_type)CaseInsensitiveList) flag_default) read_file)helpfulzhelpful.HelpfulArgumentParserN)r returnc Cs<ddlm}|jddtddj|d|jddtdtd d |jd d td tdd |jdddttj j t tddd|jdddtddd|jddddtddd|jddt dtd d!d"|jd#d$dtd%d&d|jd#d'dtd(d)d|jd#d*d+d,td,t jd-d.|jd#d/d+d,td,t jd0d.dS)1Nr)sample_user_agentz --user-agentZ 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-commentZuser_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))r typerZcertonlyz--csrZcsrz|Path to a Certificate Signing Request (CSR) in DER or PEM format. Currently --csr only works with the 'certonly' subcommand.Zrevokez--reasonreasonz?Specify reason for revoking certificate. (default: unspecified))destchoicesactionr rz--delete-after-revoke store_trueZdelete_after_revokezjDelete certificates after revoking them, along with all previous and later versions of those certificates.)rr rz--no-delete-after-revokeZ 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.)rrr rZrollbackz --checkpointsNZrollback_checkpointsz-Revert configuration N number of checkpoints.)rmetavarr rZpluginsz--initZinitzInitialize plugins.z --prepareZpreparezInitialize and prepare plugins.z--authenticatorsZ append_constZifacesz$Limit to authenticator plugins only.)rrr constrz --installersz Limit to installer plugins only.)Zcertbot._internal.clientr addrformatrr rrZREVOCATION_REASONSkeysrintrZ AuthenticatorZ Installer)r r r /usr/lib/python3.6/subparsers.py_create_subparserssX         r)__doc__ZtypingrZcertbotrZcertbot._internalrZcertbot._internal.cli.cli_utilsrrrrr Zcertbot._internal.clir rrrrrs