U
    Tg                     @   s2   d dl Z d dlZd dlZdd Zedkr.e  dS )    Nc               
   C   s   t jd d} | jdtdd | jddtdd |  }zt|j|j	}W nj t
k
r   tjd	|j  |   td
 Y n4 tjk
r } ztdt| W 5 d}~X Y nX td|j||j	f  dS )z*Set xFilesFactor for existing whisper file)descriptionpathzpath to whisper file)typehelpxffZxFilesFactorz)new xFilesFactor, a float between 0 and 1)metavarr   r   z#[ERROR] File '%s' does not exist!

   z
[ERROR] %sNz#Updated xFilesFactor: %s (%s -> %s))argparseArgumentParseradd_argumentstrfloat
parse_argswhisperZsetXFilesFactorr   r   IOErrorsysstderrwrite
print_helpexitZWhisperException
SystemExitprint)parserargsZold_xffexc r   h/home/ankuromar296_gmail_com/.local/lib/python3.8/site-packages/../../../bin/whisper-set-xfilesfactor.pymain   s&    
"r   __main__)r   r	   r   r   __name__r   r   r   r   <module>   s
   