U
    4Af                     @   s   d dl mZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ dd	lmZ dd
lmZ ddlmZ dd Zedkre  dS )    )ArgumentParser   )AddNewModelLikeCommand)ConvertCommand)DownloadCommand)EnvironmentCommand)LfsCommands)PTtoTFCommand)
RunCommand)ServeCommand)UserCommandsc                  C   s   t ddd} | jdd}t| t| t| t| t| t| t	| t
| t| |  }t|ds|   td ||}|  d S )NzTransformers CLI toolz#transformers-cli <command> [<args>])usagez transformers-cli command helpers)helpfuncr   )r   add_subparsersr   Zregister_subcommandr   r   r
   r   r   r   r   r	   
parse_argshasattr
print_helpexitr   run)parserZcommands_parserargsZservice r   J/tmp/pip-unpacked-wheel-zw5xktn0/transformers/commands/transformers_cli.pymain   s"    










r   __main__N)argparser   Zadd_new_model_liker   convertr   downloadr   envr   Zlfsr   Zpt_to_tfr	   r   r
   Zservingr   userr   r   __name__r   r   r   r   <module>   s   