
    Zia                     J    S r SSKrSSKJr  SSKJr  SSKJr  SSKJ	r	  SS jr
g)	zCommand-line application.    N)process)
get_parser)red)CommandLineErrorc                  H   [        5       n U R                  5       n [        S0 [        U5      D6nUR                  R                  U5        g! [         aK  n[        R                  R                  [        U5      S-   5        [        R                  " S5         SnAgSnAff = f)zuInterpret the command-line arguments, process the document and
raise errors accordingly (with traceback surpressed).

   N )r   
parse_argsr   varsoutputwriter   sysstderrr   exit)parserargsr   exs       o/var/www/eduai.edurigo.com/question_generate/ques_gen_env/lib/python3.13/site-packages/textract/bin/textract.pymainr      s|     \FD"&4:&
 	&!	  

R4(s   A 
B!ABB!)returnN)__doc__r   textractr   textract.clir   textract.colorsr   textract.exceptionsr   r   r
       r   <module>r      s     
  #  0"r   