
    -Ph)                         d Z ddlZddlZddlZddlZddlmZmZmZ  G d dej	                  Z
d Zedk    r>ej        d                             d          rd	ej        z  ej        d<    e             dS dS )
zGeneric command line interface for the `docutils` package.

See also
https://docs.python.org/3/library/__main__.html#main-py-in-python-packages
    N)	Publisherpublish_cmdlinedefault_descriptionc            	       T    e Zd ZdZddddgdddfd	d
gdddfddgdddfffZdZdZdS )CliSettingsSpecu   Runtime settings & command-line options for the generic CLI.

    Configurable reader, parser, and writer components.

    The "--writer" default will change to 'html' in Docutils 2.0
    when 'html' becomes an alias for the current value 'html5'.
    zDocutils Application OptionszReader, writer, and parser settings influence the available options.   Example: use `--help --writer=latex` to see LaTeX writer options. z$Reader name (currently: "%default").--reader
standalonez<reader>)defaultmetavarz$Parser name (currently: "%default").--parserrstz<parser>z$Writer name (currently: "%default").--writerhtml5z<writer>zdocutils application)zdocutils-cli applicationapplicationsN)__name__
__module____qualname____doc__settings_specconfig_sectionconfig_section_dependencies     Q/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/docutils/__main__.pyr   r      s          	'	O 1,LZHH
J
0,EjAA
C
0,G
CC
E		M ,N#3r   r   c                     t          j        t           j        d           dt          z   } t	                                          t                    }t          j        dd          }|	                    d|j
                   |	                    d|j                   |	                    d	|j                   |                                \  }}|j        t          _        	 t!          |j
        |j        |j        t          | |
           dS # t"          $ r=}t%          d|z  t&          j                   d|v r t%          d           Y d}~dS d}~ww xY w)z?Generic command line interface for the Docutils Publisher.
     z(Convert documents into useful formats.  )r   F)add_helpallow_abbrevr   )r
   r   r   )reader_nameparser_namewriter_namer   descriptionargvz%s.)filez--tracebackz"Use "--traceback" to show details.N)locale	setlocaleLC_ALLr   r   get_settingsr   argparseArgumentParseradd_argumentreaderparserwriterparse_known_args__dict__settings_default_overridesr   ImportErrorprintsysstderr)r"   
components	argparserargs	remaindererrors         r   mainr;   8   ss    V]B'''=()K )))HHJ 'UKKKI:z/@AAA:z/@AAA:z/@AAA!2244T915O.8DK$(K$(K&5$/&	( 	( 	( 	( 	( 	(  8 8 8eem#*----I%%67777777778s   $)D 
E2EE__main__z__main__.pyz%s -m docutils)r   r)   r%   r4   docutilsdocutils.corer   r   r   SettingsSpecr   r;   r   r#   endswith
executabler   r   r   <module>rB      s       



  I I I I I I I I I I3 3 3 3 3h+ 3 3 36!8 !8 !8H z
x{M** 8&7DFFFFF	 r   