o
    -g                     @   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   s~   t jdd} | jdtdd | jdddd	d
 |  }|jr&t  td |j	r.t
|j	 |js;|j	s=| d d S d S 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infofasttextr   error)dateparser_argparseargs r   S/var/www/html/django-vendor/venv/lib/python3.10/site-packages/dateparser_cli/cli.pyentrance   s2   

r   )r
   r   fasttext_managerr   utilsr   r   r   r   r   r   <module>   s
    