mò
˜B«Lc           @   sI   d  k  Z  d  k Z d g Z h  d d <Z d „  Z d „  Z d „  Z d  S(   Nt   helps"   Display help on a specific commandc          K   sï   |  i d ƒ } |  i d ƒ } |  i d ƒ } |  i d ƒ } |  i d ƒ } t t i	 ƒ d j oz t i	 d } t i i | d d	 d
 d | ƒ } t i i | ƒ o t | d ƒ i ƒ  GHqë d | GHd GHt i d ƒ n t | i | ƒ d  S(   Nt   commandt   appt   argst   envt	   cmdloaderi   i   t   basedirt   documentationt   commandss
   cmd-%s.txtt   rsJ   ~ Oops, command '%s' not found. Try just 'play help' to list all commands.t   ~iÿÿÿÿ(   t   kargst   getR   R   R   t   play_envR   t   lent   syst   argvt   cmdt   ost   patht   joint	   help_filet   existst   opent   readt   exitt	   main_helpR   (   R   R   R   R   R   R   R   R   (    (    t^   /afs/cs.wisc.edu/p/zhu/public/html/space2/dualist/play-1.1/framework/pym/play/commands/help.pyt   execute   s    #	c         C   sZ  g  } d GHd GHd GHd GHd GHx• t |  ƒ D]‡ } t |  | | ƒ p | i | ƒ q, n d t |  | ƒ j oB | |  | i j o. d | d d	 t	 | ƒ |  | i | GHq, q, Wt	 | ƒ d
 j o} d GHd GHd GHxk | D]_ } d t |  | ƒ j oB | |  | i j o. d | d d t	 | ƒ |  | i | GHqà qà Wn d GHd GHd GHd  S(   NsV   ~ For all commands, if the application is not specified, the current directory is useds<   ~ Use 'play help cmd' to get more help on a specific commandR
   s   ~ Core commands:s   ~ ~~~~~~~~~~~~~~t   HELPs   ~ t    i   i    s   ~ Modules commands:s   ~ ~~~~~~~~~~~~~~~~~i   sK   ~ Also refer to documentation at http://www.playframework.org/documentation(
   t   modules_commandst   sortedR   R   t   isCoreR   t   appendt   dirR   R   (   R   R   R   R   (    (    R   R      s0     +2 +6c         C   s   |  i i | d ƒ d j S(   NR   i    (   t   modt   __file__t   findR   (   R$   R   (    (    R   R!   6   s    (   R   R   t   COMMANDSR   R   R   R!   (   R'   R   R   R   R   R!   R   (    (    R   t   ?   s
   			