%PDF- %PDF-
Direktori : /lib64/python2.7/distutils/ |
Current File : //lib64/python2.7/distutils/fancy_getopt.pyc |
� {fc @ s� d Z d Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z d Z e j d e � Z e j d e e f � Z e j d d � Z d f d � � YZ d � Z e j e j d e e j � � Z d � Z d � Z d f d � � YZ 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 s $Id$i����N( t DistutilsGetoptErrort DistutilsArgErrors [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 st | | _ i | _ | j r( | j � n i | _ i | _ g | _ g | _ i | _ i | _ i | _ 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.7/distutils/fancy_getopt.pyt __init__- s c C s6 | j j � x"