
    2 fw	                         d Z ddlZddlZddlmZmZ ddlmZ ddlm	Z	m
Z
mZ ddlmZ ddlmZ d Zdd
Zd Zedk    r e             dS dS )zdEditorConfig command line interface

Licensed under Simplified BSD License (see LICENSE.BSD file).

    N)VERSION__version__)force_unicode)ParsingError	PathErrorVersionError)EditorConfigHandler)split_versionc                  4    t          dt          z             d S )Nz#EditorConfig Python Core Version %s)printr        K/var/www/equiseq/venv/lib/python3.11/site-packages/editorconfig/__main__.pyversionr      s    	
/+
=>>>>>r   Fc                    |rt           j        }nt           j        }|                    d| z             |                    d           |                    d           |                    d           |                    d           d S )Nz%s [OPTIONS] FILENAME
zE-f                 Specify conf filename other than ".editorconfig".
zI-b                 Specify version (used by devs to test compatibility).
z,-h OR --help       Print this help message.
z0-v OR --version    Display version information.
)sysstderrstdoutwrite)commanderrorouts      r   usager      s     jjII''1222II D E E EII H I I III=>>>IIABBBBBr   c            
         t           j        d         } 	 t          j        t          t	          t
          t           j        dd                              dddg          \  }}n]# t          j        $ rK}t          t          |                     t          | d           t          j
        d           Y d }~nd }~ww xY wt          }d	}|D ]\  }}|d
v r"t          |            t          j
                     |dv r!t                       t          j
                     |dk    r|}|dk    r(t          |          }|t          j
        d|z             t          |          dk     r%t          | d           t          j
        d           |}t          |          dk    }	|D ]}
t          |
||          }	 |                                }nT# t"          t$          t&          f$ r:}t          t          |                     t          j
        d           Y d }~nd }~ww xY w|	rt          d|
z             |                                D ]\  }}t          |d|           d S )Nr      zvhb:f:r   helpT)r      z.editorconfig)z-hz--help)z-vz	--versionz-fz-bzInvalid version number: %sz[%s]=)r   argvgetoptlistmapr   GetoptErrorr   strr   exitr   r   r
   lenr	   get_configurationsr   r   r   items)command_nameoptsargseversion_tupleconf_filenameoptionarg	filenamesmultiple_filesfilenamehandleroptionskeyvalues                  r   mainr8   #   s   8A;L]4M38ABB<(H(H#I#I#+i-@B B
dd   c!ffl$''''
 M#M = =%%%,HJJJ(((IIIHJJJT>>MT>>)#..M$5;<<<
4yy1}}l$''''IYY]N 
* 
*%h}MM	0022GGi6 	 	 	#a&&MMMHQKKKKKKKK	  	%&8#$$$!--// 	* 	*JCSSS%%())))	*
* 
*s1   AA" "B<1AB77B<4G		H 0HH__main__)F)__doc__r    r   editorconfigr   r   editorconfig.compatr   editorconfig.exceptionsr   r   r   editorconfig.handlerr	   editorconfig.versiontoolsr
   r   r   r8   __name__r   r   r   <module>rA      s      



 - - - - - - - - - - - - - - I I I I I I I I I I 4 4 4 4 4 4 3 3 3 3 3 3? ? ?C C C C+* +* +*\ zDFFFFF r   