ó
Þ‡GTc           @   s³   d  d l  Z  d  d l Z y d  d l Z e j ƒ  Wn n Xi  Z d e  j f d „  ƒ  YZ d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d d „ Z d S(   iÿÿÿÿNt   ArgumentParserc           B   s#   e  Z e d e d  „ Z d „  Z RS(   c         C   s  |  |  _  t j j |  d d d t ƒ|  j d d d  d d d | rI d	 n d
 ƒd j t t	 ƒ ƒ } |  j d d d | d d d d | r‘ d	 n d
 ƒ|  j d d d d d  d d d d ƒ|  j d d d d d d d d t
 d d d d ƒ|  j d d d d t j d d  ƒ|  j d! d d" d d# d d$ ƒ|  j d% d d" d d& d t j ƒ|  j d' d d( ƒ} | j d) d d d d* d d+ ƒ| j d, d d" d t d d- ƒ| j d. d d" d t d d/ ƒ| r|  j d0 d1 d d d d2 ƒt j j j } |  j d3 j | ƒ | ƒ |  _  n  d  S(4   Nt   descriptions   The Ren'Py visual novel engine.t   add_helpt   basedirt   defaultt   helpsu   The base directory containing of the project to run. This defaults to the directory containing the Ren'Py executable.t   nargsi   t   ?s   , t   commands0   The command to execute. Available commands are: s   . Defaults to 'run'.t   runs	   --savedirt   destt   savedirt   metavart	   DIRECTORYs9   The directory where saves and persistent data are placed.s   --tracet   tracet   actiont   storei    t   typet   LEVELsI   The level of trace Ren'Py will log to trace.txt. (1=per-call, 2=per-line)s	   --versiont   versions&   Displays the version of Ren'Py in use.s	   --compilet
   store_truet   compiles;   Forces all .rpy scripts to be recompiled before proceeding.s   --lintt   lints   JSON Dump Argumentss|   Ren'Py can dump information about the game to a JSON file. These options let you select the file, and choose what is dumped.s   --json-dumpt   FILEs   The name of the JSON file.s   --json-dump-privates0   Include private names. (Names beginning with _.)s   --json-dump-commons.   Include names defined in the common directory.s   -hs   --helps'   Displays this help message, then exits.s   {0} command(   t   groupt   argparseR    t   __init__t   Falset   add_argumentt   Nonet   joint   sortedt   commandst   intt   renpyR   t   SUPPRESSt   add_argument_groupt   gamet   argsR   t   format(   t   selft   second_passR   t   require_commandt   command_namest   dumpR   (    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyR   1   sF    	$
c         O   s?   |  j  |  k r( t j j |  | | Ž n |  j  j | | Ž  d  S(   N(   R   R   R    R   (   R(   R&   t   kwargs(    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyR   o   s    N(   t   __name__t
   __module__t   TrueR   R   R   (    (    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyR    +   s   >c       
   C   sã   t  d d d t ƒ }  |  j d d d d d d	 t d
 d ƒ|  j d d d d d d	 t d
 d ƒ|  j d d d d	 d  d
 d ƒ|  j ƒ  } t j _ | j r¯ | j t j _	 n  | j
 rÇ t t j _ n  | j rß t t j _ n  t S(   NR   s"   Runs the current project normally.R*   s   --profile-displayR
   t   profile_displayR   R   R   R   sN   If present, Ren'Py will report the amount of time it takes to draw the screen.s   --debug-image-cachet   debug_image_cachesR   If present, Ren'Py will log information regarding the contents of the image cache.s   --warpt   warpsq   This takes as an argument a filename:linenumber pair, and tries to warp to the statement before that line number.(   R    R   R   R   t
   parse_argsR"   R%   R&   R3   t	   warp_specR1   R0   t   configt   profileR2   (   t   apR&   (    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyR	   u   s$    			c           C   s   t  d ƒ t S(   Ns   Recompiles the game script.(   t   takes_no_argumentsR   (    (    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyR   •   s    
c           C   s   t  d ƒ t S(   Ns   Recompiles the game script.(   R9   R   (    (    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyt   quitŸ   s    
c           C   s   t  d ƒ t j j j ƒ  t S(   Ns   Deletes the persistent data.(   R9   R"   t   loadsavet   locationt   unlink_persistentR   (    (    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyt   rmpersistent¨   s    
c         C   s   | t  |  <d  S(   N(   R    (   t   namet   function(    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyt   register_command´   s    c          C   s(   t  t d t ƒ}  |  j ƒ  \ } } | S(   NR*   (   R    R   t   parse_known_args(   R8   R&   t   _rest(    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyt	   bootstrapÃ   s    c           C   sK   t  d t ƒ t  d t j j ƒ t  d t ƒ t  d t ƒ t  d t ƒ d  S(   NR	   R   R   R>   R:   (   RA   R	   R"   R   R   R>   R:   (    (    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyt   pre_initÏ   s
    c          C   sf   t  j j j }  |  d k r3 t  j j j r3 d }  n  |  t k r[ t ƒ  j d j |  ƒ ƒ n  t |  ƒ  S(   NR	   R   s   Command {0} is unknown.(	   R"   R%   R&   R   R   R    R    t   errorR'   (   R   (    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyt	   post_initÝ   s    	c         C   s   t  d |  ƒ j ƒ  d  S(   NR   (   R    R4   (   R   (    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyR9   î   s    (   R   R"   t   sitet   _renpy_argv_emulationR    R    R	   R   R:   R>   RA   RD   RE   RG   R   R9   (    (    (    s_   C:\Users\Administrator Reset\Downloads\bundestrojaner_all\Unteralterbach-all\renpy\arguments.pyt   <module>   s"   J	 	
							