File: //opt/alt/python35/lib64/python3.5/distutils/__pycache__/fancy_getopt.cpython-35.opt-1.pyc
��YfxE  �               @   sH  d  Z  d d l Z d d l Z d d l Z d d l Z d d l Td Z e j d e � Z e j d e e f � Z	 e
 j d d � Z Gd	 d
 �  d
 � Z
 d d �  Z d
 d �  e j D� Z d d �  Z d d �  Z Gd d �  d � Z e d k rDd Z xK d d d d f D]7 Z e d e � e d j e e e � � � e �  q	Wd S)a6  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
�    N)�*z[a-zA-Z](?:[a-zA-Z0-9-]*)z^%s$z^(%s)=!(%s)$�-�_c               @   s�   e  Z d  Z d Z d d d � Z d d �  Z d d �  Z d d d	 d
 � Z d d �  Z d
 d �  Z	 d d �  Z
 d d �  Z d d �  Z d d �  Z
 d d d d � Z d d �  Z d d d � Z d d d d � Z d S)�FancyGetopta�  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
    Nc             C   sq   | |  _  i  |  _ |  j  r% |  j �  i  |  _ i  |  _ g  |  _ g  |  _ i  |  _ i  |  _ i  |  _	 g  |  _
 d  S)N)�option_table�option_index�_build_index�alias�negative_alias�
short_opts�	long_opts�
short2long�	attr_name�	takes_arg�option_order)�selfr   � r   �;/opt/alt/python35/lib64/python3.5/distutils/fancy_getopt.py�__init__)   s    				
							zFancyGetopt.__init__c             C   s6   |  j  j �  x"