
    he                     X    d dl Z ddlmZ d Zedk(  r e j                   e              yy)    N   )lupdatec                  h   ddl } ddlm} ddlm} d}| j                  |d      }|j                  d	d
d|       |j                  dddd       |j                  dddd       |j                  ddd       |j                  dddddd       |j                  ddd        |j                  d!d"d#$       |j                         }	 t        |j                  |j                  |j                  |j                  |j                  |j                         y# |$ r5}t        d%j!                  ||      t"        j$                  &       Y d}~yd}~w |j                  r'ddl} |j(                  t#        j*                           Y y)t        d'j!                  ||(      t"        j$                  &       Y y)xY w)*z$ Update a .ts file from a .py file. r   N)PYQT_VERSION_STRr   )UserException
pylupdate6zPython Language Update Tool)progdescriptionz-Vz	--versionversion)actionr   z	--excludeappendPATTERNz/exclude matching files when reading a directory)r   metavarhelpz--no-obsoletez-no-obsolete
store_truez'remove any obsolete translated messages)r   r   z--no-summaryzsuppress the summaryz--tsz-tsFILETza .ts file to update or create)r   r   requiredr   z	--verbosezshow progress messagesfile+z,the .py or .ui file, or directory to be read)nargsr   z{0}: {1})r   a^  An unexpected error occurred.
Check that you are using the latest version of {name} and send an error
report to the PyQt mailing list and include the following information:

- the version of {name} ({version})
- the .py or .ui file that caused the error (as an attachment)
- the verbose output of {name} (use the --verbose flag when calling
  {name}))namer      )argparsePyQt6.QtCorer   userr   ArgumentParseradd_argument
parse_argsr   r   tsno_obsolete
no_summaryverboseexcludeprintformatsysstderr	tracebackprint_exceptionexc_info)r   r   r   PROGRAM_NAMEparserargser(   s           9/usr/lib/python3/dist-packages/PyQt6/lupdate/pylupdate.pymainr0      s    -#  L $$,5 % 7F k)$  &
HiB  D
:  <
|'  )
h1  3 L)  +
c?  A D		477D$4$4doodll	,. +  ja0szzB<<%I%%s||~6    V/?V@% s   	AD F1+E6F1,F1__main__)r&   r   r0   __name__exit     r/   <module>r6      s2   &  ;| zCHHTV r5   