/usr/lib/python2.6/site-packages/cliff
Edit: /usr/lib/python2.6/site-packages/cliff/help.pyc (3244B)
Ñò
yDVc @ sg d d k Z d d k Z d d k Z d d k l Z d e i f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿNi ( t Commandt
HelpActionc B s e Z d Z d d „ Z RS( sï Provide a custom action so the -h and --help options
to the main app will print a list of the commands.
The commands are determined by checking the CommandManager
instance, passed in as the "default" value for the action.
c
C sm | i } | i | i ƒ | i i d ƒ | i } x't | ƒ D]\ } } y | i ƒ } WnM t j
oA }
| i i d | ƒ | i o t i
d | i ƒ q? q? n Xy$ | | d ƒ } | i o w? n WnS t j
oG }
| i i d | |
f ƒ | i o t i
d | i ƒ q? q? n X| i
ƒ i d ƒ d } | i i d | | f ƒ q? Wt i d ƒ d S( Ns
Commands:
s Could not load %r
t files Could not instantiate %r: %s
s
i s %-13s %s
( t defaultt
print_helpt stdoutt writet command_managert sortedt loadt Exceptiont debugt tracebackt print_exct Nonet
deprecatedt get_descriptiont splitt syst exit(
t selft parsert namespacet valuest
option_stringt appR t namet ept factoryt errt cmdt one_liner( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/help.pyt __call__ s2
N( t __name__t
__module__t __doc__R R ( ( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/help.pyR s t HelpCommandc B s e Z d Z d „ Z d „ Z RS( s, print detailed help for another command
c C s5 t t | ƒ i | ƒ } | i d d d d d ƒ| S( NR t nargst *t helps name of the command( t superR$ t
get_parsert add_argument( R t prog_nameR ( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/help.pyR) . s
c C s | i oHy+ | i i i | i ƒ } | \ } } } Wn· t j
o« | i d } g } | i i D]) } | d i | ƒ o | | d qd qd ~ } | p ‚ n | i i i d | ƒ x+ t | ƒ D] }
| i i i d |
ƒ qÈ Wd SX| | i _ | | i | i ƒ } | i i
o | n d i | i i | g ƒ } | i
| ƒ } n8 t d d d | i ƒ}
|
| i i | i i d d ƒ | i | i i ƒ d S( Ni s Command "%s" matches:
s %s
t R ( R R R t find_commandt
ValueErrort
startswithR R R t app_argst interactive_modet joint NAMER) R R R R ( R t parsed_argst the_cmdt cmd_factoryt cmd_namet search_argsR t _[1]t kt
fuzzy_matchest fmt full_namet
cmd_parsert action( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/help.pyt take_action6 s2
,
( R! R" R# R) R@ ( ( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/help.pyR$ * s ( t argparseR R t commandR t ActionR R$ ( ( ( s) /tmp/pip-build-lt8jXN/cliff/cliff/help.pyt
s
"