ó
[łXMc           @   sm   d  Z  d d l Z d d l m Z d   Z d   Z d Z d e j f d     YZ e	 d	 k ri e   n  d S(
   s$   
Start a L{twisted.manhole} client.
i˙˙˙˙N(   t   usagec          C   s{   t    }  y |  j   Wn9 t j k
 rR } t |  GHt |   GHt j d  n Xt |   d d l m	 } | j
   d  S(   Ni   i˙˙˙˙(   t   reactor(   t	   MyOptionst   parseOptionsR    t
   UsageErrort   strt   syst   exitt   run_gtk2t   twisted.internetR   t   run(   t   configt   eR   (    (    s;   /usr/lib/python2.7/dist-packages/twisted/scripts/manhole.pyR
      s    	
c         C   sŻ   d d l  m } | j   d g t j (d d l m } |  j } i | d d 6| d d 6| d d 6| d	 d	 6| d
 d 6| d d 6} | j   } | j	 |  | j
   d  S(   Ni˙˙˙˙(   t   gtk2reactort   manhole(   t   gtk2manholet   hostt   portt   usert   identityNamet   passwordt   servicet   serviceNamet   perspectivet   perspectiveName(   R	   R   t   installR   t   argvt   twisted.manhole.uiR   t   optst   ManholeWindowt   setDefaultst   login(   R   R   R   t   ot   defaultst   w(    (    s;   /usr/lib/python2.7/dist-packages/twisted/scripts/manhole.pyR      s    
	iS"  R   c        	   B   s<   e  Z d d d d d d e e  f d g Z i d d
 6Z RS(   R   t   ut   guestt   usernameR   R"   R   t   ss   twisted.manholes
   PB ServiceR   t   ht	   localhostR   t   pR   t   Pt    s6   PB Perspective to ask for (if different than username)t   _hosts(   s   userR#   R$   R%   (   s   passwordR"   R$   (   s   serviceR&   s   twisted.manholes
   PB Service(   s   hostR'   R(   (   s   perspectiveR*   R+   s6   PB Perspective to ask for (if different than username)(   t   __name__t
   __module__R   t   pbportnot   optParameterst   zsh_actions(    (    (    s;   /usr/lib/python2.7/dist-packages/twisted/scripts/manhole.pyR   5   s    	t   __main__(
   t   __doc__R   t   twisted.pythonR    R
   R   R/   t   OptionsR   R-   (    (    (    s;   /usr/lib/python2.7/dist-packages/twisted/scripts/manhole.pyt   <module>   s   		