Ñò §ÚêLc @ sS d Z d Z d d k Z d d k Z d d k Z d d k Td d k Z d d k Td Z e i d e ƒ Z e i d e e f ƒ Z e i d d ƒ Z d f d „ ƒ YZ d „ Z e i e i d e e i ƒ ƒ Z d „ Z d „ Z d f d „ ƒ YZ e d j oK d Z x> d d d d f D]* Z d e GHe i e e e ƒ d ƒ GHHqWn d S( s6 distutils.fancy_getopt Wrapper around the standard getopt module that provides the following additional features: * short and long options are tied together * options have help strings, so fancy_getopt could potentially create a complete usage summary * options set attributes of a passed-in object sB $Id: fancy_getopt.py 60923 2008-02-21 18:18:37Z guido.van.rossum $iÿÿÿÿN( t *s [a-zA-Z](?:[a-zA-Z0-9-]*)s ^%s$s ^(%s)=!(%s)$t -t _t FancyGetoptc B s¤ e Z d Z d d „ Z d „ Z d „ Z d d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d d d „ Z d „ Z d d „ Z d d d „ Z RS( sÕ Wrapper around the standard 'getopt()' module that provides some handy extra functionality: * short and long options are tied together * options have help strings, and help text can be assembled from them * options set attributes of a passed-in object * boolean options can have "negative aliases" -- eg. if --quiet is the "negative alias" of --verbose, then "--quiet" on the command line sets 'verbose' to false c C sv | | _ h | _ | i o | i ƒ n h | _ h | _ g | _ g | _ h | _ h | _ h | _ g | _ d S( N( t option_tablet option_indext _build_indext aliast negative_aliast short_optst long_optst short2longt attr_namet takes_argt option_order( t selfR ( ( s. /usr/lib64/python2.6/distutils/fancy_getopt.pyt __init__. s c C s6 | i i ƒ x" | i D] } | | i | d