a
    xd                     @   s4   d dl Z d dlZddlmZ ddlmZ dd ZdS )    N   )fasttext_downloader)clear_cachec                  C   sv   t jdd} | jdtdd | jdddd	d
 |  }|jrLt  td |j	r\t
|j	 |jsr|j	sr| d d S )Nzdateparser download manager.)descriptionz
--fasttextzZTo download a fasttext language detection models. Supported models are "small" and "large")typehelpz--clearz--clear-cachezTo clear all cached models
store_true)r   actionz&dateparser-download: All cache deletedzRdateparser-download: You need to specify the command (i.e.: --fasttext or --clear))argparseArgumentParseradd_argumentstr
parse_argsclearr   logginginfoZfasttextr   error)Zdateparser_argparseargs r   J/var/www/html/Ranjet/env/lib/python3.9/site-packages/dateparser_cli/cli.pyentrance   s,    

r   )r
   r   Zfasttext_managerr   utilsr   r   r   r   r   r   <module>   s   