tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
L\¬Qc@sÀdZdZdddddddd    d
d d d ddddgZdZddlZddlZddlZddlZd„Zyddl    m    Z    Wne
k
r±d„Z    nXe    Z d e fd„ƒYZ de fd„ƒYZdefd„ƒYZde fd„ƒYZde fd„ƒYZdefd„ƒYZd
fd„ƒYZd efd „ƒYZd efd!„ƒYZd"„Zd#„Zd$„Ziee d%ƒfd&6ee d'ƒfd(6ee d)ƒfd*6ee d+ƒfd+6Zd,„Zd-„Zd.d/fZdfd0„ƒYZd1d2Z d1d3Z!ye"Wne#k
rQd4„Z$n
Xd5„Z$dfd6„ƒYZ%dfd7„ƒYZ&de&fd8„ƒYZ'd    e&fd9„ƒYZ(d:„Z)eZ*dS(;s§A powerful, extensible, and easy-to-use option parser.
 
By Greg Ward <gward@python.net>
 
Originally distributed as Optik.
 
For support, use the optik-users@lists.sourceforge.net mailing list
(http://lists.sourceforge.net/lists/listinfo/optik-users).
 
Simple usage example:
 
   from optparse import OptionParser
 
   parser = OptionParser()
   parser.add_option("-f", "--file", dest="filename",
                     help="write report to FILE", metavar="FILE")
   parser.add_option("-q", "--quiet",
                     action="store_false", dest="verbose", default=True,
                     help="don't print status messages to stdout")
 
   (options, args) = parser.parse_args()
s1.5.3tOptiont make_optiont SUPPRESS_HELPtSUPPRESS_USAGEtValuestOptionContainert OptionGroupt OptionParsert HelpFormattertIndentedHelpFormattertTitledHelpFormattert OptParseErrort OptionErrortOptionConflictErrortOptionValueErrortBadOptionErrors"
Copyright (c) 2001-2006 Gregory P. Ward.  All rights reserved.
Copyright (c) 2002-2006 Python Software Foundation.  All rights reserved.
 
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
 
  * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
 
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.
 
  * Neither the name of the author nor the names of its
    contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.
 
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
iÿÿÿÿNcCsd|jjt|ƒ|fS(Ns<%s at 0x%x: %s>(t    __class__t__name__tid(tself((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_reprOs(tgettextcCs|S(N((tmessage((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR\scBseZd„Zd„ZRS(cCs ||_dS(N(tmsg(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt__init__bscCs|jS(N(R(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt__str__es(Rt
__module__RR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR as    cBs eZdZd„Zd„ZRS(s]
    Raised if an Option instance is created with invalid or
    inconsistent arguments.
    cCs||_t|ƒ|_dS(N(Rtstrt    option_id(RRtoption((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRos    cCs(|jrd|j|jfS|jSdS(Ns option %s: %s(RR(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRss    (RRt__doc__RR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR is    cBseZdZRS(sE
    Raised if conflicting options are added to an OptionParser.
    (RRR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR yscBseZdZRS(sS
    Raised if an invalid option value is encountered on the command
    line.
    (RRR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR~scBs eZdZd„Zd„ZRS(sB
    Raised if an invalid option is seen on the command line.
    cCs ||_dS(N(topt_str(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRˆscCstdƒ|jS(Nsno such option: %s(t_R(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR‹s(RRRRR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR„s    tAmbiguousOptionErrorcBs eZdZd„Zd„ZRS(sD
    Raised if an ambiguous option is seen on the command line.
    cCstj||ƒ||_dS(N(RRt possibilities(RRR"((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR’scCs#tdƒ|jdj|jƒfS(Nsambiguous option: %s (%s?)s, (R RtjoinR"(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR–s    (RRRRR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR!Žs    cBs›eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zd„Zd„ZRS(sÍ
    Abstract base class for formatting option help.  OptionParser
    instances should use one of the HelpFormatter subclasses for
    formatting help; by default IndentedHelpFormatter is used.
 
    Instance attributes:
      parser : OptionParser
        the controlling OptionParser instance
      indent_increment : int
        the number of columns to indent per nesting level
      max_help_position : int
        the maximum starting column for option help text
      help_position : int
        the calculated starting column for option help text;
        initially the same as the maximum
      width : int
        total number of columns for output (pass None to constructor for
        this value to be taken from the $COLUMNS environment variable)
      level : int
        current indentation level
      current_indent : int
        current indentation level (in columns)
      help_width : int
        number of columns available for option help text (calculated)
      default_tag : str
        text to replace with each option's default value, "%default"
        by default.  Set to false value to disable default value expansion.
      option_strings : { Option : str }
        maps Option instances to the snippet of help text explaining
        the syntax of that option, e.g. "-h, --help" or
        "-fFILE, --file=FILE"
      _short_opt_fmt : str
        format string controlling how short options with values are
        printed in help text.  Must be either "%s%s" ("-fFILE") or
        "%s %s" ("-f FILE"), because those are the two syntaxes that
        Optik supports.
      _long_opt_fmt : str
        similar but for long options; must be either "%s %s" ("--file FILE")
        or "%s=%s" ("--file=FILE").
    tnonecCsÇd|_||_||_|_|dkrryttjdƒ}Wntt    fk
rdd}nX|d8}n||_
d|_ d|_ d|_ ||_d|_i|_d|_d|_dS(NtCOLUMNSiPiis%defaults%s %ss%s=%s(tNonetparsertindent_incrementt help_positiontmax_help_positiontinttostenvirontKeyErrort
ValueErrortwidthtcurrent_indenttlevelt
help_widtht short_firstt default_tagtoption_stringst_short_opt_fmtt _long_opt_fmt(RR(R*R0R4((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRÈs$         
                                 cCs ||_dS(N(R'(RR'((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt
set_parseràscCs4|dkrtd|ƒ‚nd|d|_dS(Ntt s/invalid metavar delimiter for short options: %rs%s(R:R;(R/R7(Rtdelim((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytset_short_opt_delimiterãs cCs4|dkrtd|ƒ‚nd|d|_dS(Nt=R;s.invalid metavar delimiter for long options: %rs%s(R>R;(R/R8(RR<((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytset_long_opt_delimiterés cCs%|j|j7_|jd7_dS(Ni(R1R(R2(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytindentïscCs@|j|j8_|jdks-tdƒ‚|jd8_dS(NisIndent decreased below 0.i(R1R(tAssertionErrorR2(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytdedentóscCs td‚dS(Nssubclasses must implement(tNotImplementedError(Rtusage((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt format_usageøscCs td‚dS(Nssubclasses must implement(RC(Rtheading((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytformat_headingûscCs9|j|j}d|j}tj||d|d|ƒS(s
        Format a paragraph of free-form text for inclusion in the
        help output at the current indentation level.
        R;tinitial_indenttsubsequent_indent(R0R1ttextwraptfill(Rttextt
text_widthR@((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt _format_textþs      cCs|r|j|ƒdSdSdS(Ns
R:(RN(Rt description((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytformat_description
scCs#|rd|j|ƒdSdSdS(Ns
R:(RN(Rtepilog((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt format_epilogscCsx|jdks|j r |jS|jjj|jƒ}|tksP|dkr\|j}n|jj    |jt
|ƒƒS(N( R'R&R5thelptdefaultstgettdestt
NO_DEFAULTtNO_DEFAULT_VALUEtreplaceR(RRt default_value((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytexpand_defaults  c    Cs6g}|j|}|j|jd}t|ƒ|kr[d|jd|f}|j}nd|jd||f}d}|j|ƒ|jr    |j|ƒ}tj||j    ƒ}|jd|d|dfƒ|j
g|dD]}d|jd|f^qãƒn |ddkr)|jdƒndj |ƒS(    Nis%*s%s
R:s    %*s%-*s  iiiÿÿÿÿs
( R6R)R1tlentappendRSR[RJtwrapR3textendR#(    RRtresulttoptst    opt_widtht indent_firstt    help_textt
help_linestline((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt format_option!s$           .cCs
|jƒd}xI|jD]>}|j|ƒ}||j|<t|t|ƒ|jƒ}qW|jƒx]|jD]R}xI|jD]>}|j|ƒ}||j|<t|t|ƒ|jƒ}q€WqpW|jƒ|jƒt    |d|j
ƒ|_ |j |j |_ dS(Nii(R@t option_listtformat_option_stringsR6tmaxR\R1t option_groupsRBtminR*R)R0R3(RR'tmax_lentopttstringstgroup((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytstore_option_stringsDs 
  
 $
 
cCs¸|jƒry|jp!|jjƒ}g|jD]}|j||f^q.}g|jD]}|j||f^qW}n|j}|j}|jr¡||}n
||}dj    |ƒS(s@Return a comma-separated list of option strings & metavariables.s, (
t takes_valuetmetavarRVtuppert _short_optsR7t
_long_optsR8R4R#(RRRstsoptt
short_optstloptt    long_optsRa((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRiVs &)             
(RRRRXRR9R=R?R@RBRERGRNRPRRR[RgRqRi(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR›s")                                                
   #    cBs5eZdZddddd„Zd„Zd„ZRS(s.Format help with indented section bodies.
    iiicCstj|||||ƒdS(N(RR(RR(R*R0R4((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRmscCstdƒ|S(Ns
Usage: %s
(R (RRD((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyREuscCsd|jd|fS(Ns%*s%s:
R:(R1(RRF((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRGxsN(RRRR&RRERG(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR    is     cBs5eZdZddddd„Zd„Zd„ZRS(s1Format help with underlined section headers.
    iicCstj|||||ƒdS(N(RR(RR(R*R0R4((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR€scCsd|jtdƒƒ|fS(Ns%s  %s
tUsage(RGR (RRD((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyREˆscCsd|d|jt|ƒfS(Ns%s
%s
s=-(R2R\(RRF((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRG‹sN(RRRR&RRERG(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR
|s     cCsz|d jƒdkrd}nN|d jƒdkrNd}|dpHd}n|d dkrgd}nd}|||ƒS(    Nit0xit0bt0iii
(tlower(tvalttypetradix((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt
_parse_nums        cCs t|tƒS(N(RƒR+(R€((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt
_parse_intœscCs t|tƒS(N(Rƒtlong(R€((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt _parse_longŸstintegerR+s long integerR…sfloating-pointtfloattcomplexcCsXt|j\}}y||ƒSWn0tk
rSttdƒ|||fƒ‚nXdS(Nsoption %s: invalid %s value: %r(t _builtin_cvtRR/RR (RRntvaluetcvttwhat((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt check_builtin§s  cCsQ||jkr|Sdjtt|jƒƒ}ttdƒ|||fƒ‚dS(Ns, s.option %s: invalid choice: %r (choose from %s)(tchoicesR#tmaptreprRR (RRnR‹R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt check_choice¯s     tNOtDEFAULTc BsNeZdZddddddddd    d
d d g Zd-Zd.Zd/Zd0Zd1Zd2Z    ie
d6e
d6e
d6e
d6e d6Z d3Zd„Zd„Zd„Zd„Zd„Zd „Zd!„Zd"„Zd#„Zd$„Zd%„ZeeeeeeegZd&„ZeZd'„Zd(„Zd)„Zd*„Z d+„Z!d,„Z"RS(4sr
    Instance attributes:
      _short_opts : [string]
      _long_opts : [string]
 
      action : string
      type : string
      dest : string
      default : any
      nargs : int
      const : any
      choices : [string]
      callback : function
      callback_args : (any*)
      callback_kwargs : { string : any }
      help : string
      metavar : string
    tactionRRVtdefaulttnargstconstRtcallbackt callback_argstcallback_kwargsRSRststoret store_constt
store_truet store_falseR]t append_consttcounttversiontstringR+R…RˆR‰tchoicecOs]g|_g|_|j|ƒ}|j|ƒ|j|ƒx|jD]}||ƒqEWdS(N(RuRvt_check_opt_stringst_set_opt_stringst
_set_attrst CHECK_METHODS(RRatattrstchecker((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR0s          cCs(td|ƒ}|s$tdƒ‚n|S(Ns+at least one option string must be supplied(tfilterR&t    TypeError(RRa((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR¥CscCsáxÚ|D]Ò}t|ƒdkr5td||ƒ‚qt|ƒdkr|ddkod|ddks}td||ƒ‚n|jj|ƒq|dd!dko°|ddksÉtd||ƒ‚n|jj|ƒqWdS(    Nis>invalid option string %r: must be at least two characters longit-isMinvalid short option string %r: must be of the form -x, (x any non-dash char)s--sGinvalid long option string %r: must start with --, followed by non-dash(R\R RuR]Rv(RRaRn((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR¦Ls$   # cCs¬xj|jD]_}||kr:t||||ƒ||=q
|dkrYt||tƒq
t||dƒq
W|r¨|jƒ}|jƒtddj|ƒ|ƒ‚ndS(NR–sinvalid keyword arguments: %ss, (tATTRStsetattrRWR&tkeystsortR R#(RR©tattr((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR§as 
 
cCsJ|jdkrd|_n+|j|jkrFtd|j|ƒ‚ndS(NRœsinvalid action: %r(R•R&tACTIONSR (R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt _check_actionus cCs)|jdkrK|j|jkr%|jdk    r<d|_qHd|_q%nÚddl}t|jƒtjks¢t|jdƒr´t    ||jj
dƒ|jkr´|jj
|_n|jdkrÏd|_n|j|j krút d|j|ƒ‚n|j|j kr%t d|j|ƒ‚ndS(NR¤R£iÿÿÿÿRRsinvalid option type: %rs$must not supply a type for action %r(RR&R•tALWAYS_TYPED_ACTIONSRt __builtin__ttypestTypeTypethasattrtgetattrRtTYPESR t TYPED_ACTIONS(RR¶((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt _check_type{s"  ! cCs²|jdkr†|jdkr0td|ƒ‚q®t|jƒtjtjfkr®tdtt|jƒƒjdƒd|ƒ‚q®n(|jdk    r®td|j|ƒ‚ndS(NR¤s/must supply a list of choices for type 'choice's1choices must be a list of strings ('%s' supplied)t'is#must not supply choices for type %r(    RRR&R R·t    TupleTypetListTypeRtsplit(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt _check_choice™s!/cCs}|j|jkp|jdk    }|jdkry|ry|jrb|jddjddƒ|_qy|jdd|_ndS(NiiR­R i(R•t STORE_ACTIONSRR&RVRvRYRu(RRr((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt _check_dest¦s     #cCs>|j|jkr:|jdk    r:td|j|ƒ‚ndS(Ns*'const' must not be supplied for action %r(R•t CONST_ACTIONSR˜R&R (R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt _check_constµs!
cCs\|j|jkr0|jdkrXd|_qXn(|jdk    rXtd|j|ƒ‚ndS(Nis*'nargs' must not be supplied for action %r(R•R¼R—R&R (R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt _check_nargs»s
cCs+|jdkr½t|jdƒs:td|j|ƒ‚n|jdk    rzt|jƒtjk    rztd|j|ƒ‚n|j    dk    r't|j    ƒtj
k    r'td|j    |ƒ‚q'nj|jdk    råtd|j|ƒ‚n|jdk    rtd|ƒ‚n|j    dk    r'td|ƒ‚ndS(    NR™t__call__scallback not callable: %rs3callback_args, if supplied, must be a tuple: not %rs4callback_kwargs, if supplied, must be a dict: not %rs.callback supplied (%r) for non-callback options.callback_args supplied for non-callback options0callback_kwargs supplied for non-callback option( R•R¹R™R RšR&RR·R¿R›tDictType(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_check_callbackÄs0cCsdj|j|jƒS(Nt/(R#RuRv(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRëscCs |jdk    S(N(RR&(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRrðscCs#|jr|jdS|jdSdS(Ni(RvRu(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytget_opt_stringós     cCs9|jj|jƒ}|dkr%|S||||ƒSdS(N(t TYPE_CHECKERRURR&(RRnR‹Rª((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt check_valueüs cCs[|dk    rW|jdkr+|j||ƒStg|D]}|j||ƒ^q5ƒSndS(Ni(R&R—RÎttuple(RRnR‹tv((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt convert_values cCs4|j||ƒ}|j|j|j||||ƒS(N(RÑt take_actionR•RV(RRnR‹tvaluesR'((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytprocess
sc        Cs§|dkrt|||ƒn„|dkrAt|||jƒnb|dkr`t||tƒnC|dkrt||tƒn$|dkr§|j|gƒj|ƒnü|dkrÒ|j|gƒj|jƒnÑ|dkrt|||j|dƒd    ƒn¢|d
krJ|jpd}|jp(i}|j||||||ŽnY|d krm|j    ƒ|j
ƒn6|d kr|j ƒ|j
ƒnt d |j ƒ‚d    S(NRœRRžRŸR]R R¡iiR™RSR¢sunknown action %r((R¯R˜tTruetFalset ensure_valueR]RšR›R™t
print_helptexitt print_versionR/R•(    RR•RVRnR‹RÓR'targstkwargs((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRÒs4       #  
 
 (
sstores store_consts
store_trues store_falsesappends append_constscountscallbackshelpsversion(sstores store_consts
store_trues store_falsesappends append_constscount(sstoresappendscallback(sstoresappend(s store_consts append_const(sstringsintslongsfloatscomplexschoiceN(#RRRR®R³RÃR¼RµRÅR»RŽR’RÍR&R¨RR¥R¦R§R´R½RÂRÄRÆRÇRÊRRt__repr__RrRÌRÎRÑRÔRÒ(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR½sŒ    
 
                                                                                     tSUPPRESStHELPtUSAGEcCst|tjtjfƒS(N(t
isinstanceR·t
StringTypet UnicodeType(tx((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt isbasestring=scCs t|tƒS(N(Rát
basestring(Rä((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRå@scBsheZd
d„Zd„ZeZd„Zd„Zd„Z    d„Z
dd„Z dd„Z d    „Z RS( cCs:|r6x-|jƒD]\}}t|||ƒqWndS(N(titemsR¯(RRTR²R€((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyREscCs t|jƒS(N(Rt__dict__(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRJscCsLt|tƒr"t|j|jƒSt|tjƒrDt|j|ƒSdSdS(Niÿÿÿÿ(RáRtcmpRèR·RÉ(Rtother((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt__cmp__Os
cCsSxLt|ƒD]>}||kr ||}|dk    rKt|||ƒqKq q WdS(sû
        Update the option values from an arbitrary dictionary, but only
        use keys from dict that already have a corresponding attribute
        in self.  Any keys in dict without a corresponding attribute
        are silently ignored.
        N(tdirR&R¯(RtdictR²tdval((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_update_carefulWs
 
 cCs|jj|ƒdS(sÅ
        Update the option values from an arbitrary dictionary,
        using all keys from the dictionary regardless of whether
        they have a corresponding attribute in self or not.
        N(Rètupdate(RRí((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt _update_loosedscCsI|dkr|j|ƒn)|dkr8|j|ƒn td|‚dS(Ntcarefultloosesinvalid update mode: %r(RïRñR/(RRítmode((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_updatels
  RòcCs1t|ƒtj|}|jt|ƒ|ƒdS(N(t
__import__tsystmodulesRõtvars(RtmodnameRôtmod((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt read_modulets
 cCs'i}t||ƒ|j||ƒdS(N(texecfileRõ(RtfilenameRôRù((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt    read_fileys cCsEt||ƒ s%t||ƒdkr8t|||ƒnt||ƒS(N(R¹RºR&R¯(RR²R‹((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR×~s%N(RRR&RRRRÝRëRïRñRõRüRÿR×(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRCs                       cBsžeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zd„Zd„ZRS(s“
    Abstract base class.
 
    Class attributes:
      standard_option_list : [Option]
        list of standard options that will be accepted by all instances
        of this parser class (intended to be overridden by subclasses).
 
    Instance attributes:
      option_list : [Option]
        the list of Option objects contained by this OptionContainer
      _short_opt : { string : Option }
        dictionary mapping short option strings, eg. "-f" or "-X",
        to the Option instances that implement them.  If an Option
        has multiple short option strings, it will appears in this
        dictionary multiple times. [1]
      _long_opt : { string : Option }
        dictionary mapping long option strings, eg. "--file" or
        "--exclude", to the Option instances that implement them.
        Again, a given Option can occur multiple times in this
        dictionary. [1]
      defaults : { string : any }
        dictionary mapping option destination names to default
        values for each destination [1]
 
    [1] These mappings are common to (shared by) all components of the
        controlling OptionParser, where they are initially created.
 
    cCs1|jƒ||_|j|ƒ|j|ƒdS(N(t_create_option_listt option_classtset_conflict_handlertset_description(RRtconflict_handlerRO((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR¤s
     cCsi|_i|_i|_dS(N(t
_short_optt    _long_optRT(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_create_option_mappings¯s        cCs(|j|_|j|_|j|_dS(N(RRRT(RR'((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_share_option_mappings¸s  cCs)|dkrtd|‚n||_dS(Nterrortresolves$invalid conflict_resolution value %r(serrorR
(R/R(Rthandler((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR¿s cCs ||_dS(N(RO(RRO((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRÄscCs|jS(N(RO(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytget_descriptionÇscCs|`|`|`dS(ssee OptionParser.destroy().N(RRRT(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytdestroyËscCsrg}x=|jD]2}||jkr|j||j|fƒqqWx=|jD]2}||jkrP|j||j|fƒqPqPW|rn|j}|dkr×tddjg|D]}|d^q´ƒ|ƒ‚qn|dkrnx…|D]z\}}|jdƒr"|jj    |ƒ|j|=n|jj    |ƒ|j|=|jpK|jsê|j
j j    |ƒqêqêWqnndS(NR    s conflicting option string(s): %ss, iR
s--( RuRR]RvRRR R#t
startswithtremovet    containerRh(RRt conflict_optsRnR tcotc_option((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_check_conflictÔs.!!     $   
cOsDt|dƒtjkr.|j||Ž}nNt|ƒdkrs| rs|d}t|tƒs|td|‚q|n    td‚|j|ƒ|j    j
|ƒ||_ x|j D]}||j |<q¬Wx|jD]}||j|<qÍW|jdk    r@|jtk    r|j|j|j<q@|j|jkr@d|j|j<q@n|S(sOadd_option(Option)
           add_option(opt_str, ..., kwarg=val, ...)
        iisnot an Option instance: %rsinvalid argumentsN(RR·t StringTypesRR\RáRR¬RRhR]RRuRRvRRVR&R–RWRT(RRÛRÜRRn((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt
add_optionïs(
         cCs"x|D]}|j|ƒqWdS(N(R(RRhR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt add_options s cCs"|jj|ƒp!|jj|ƒS(N(RRUR(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt
get_optionscCs||jkp||jkS(N(RR(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt
has_optionscCs¥|jj|ƒ}|dkr3|jj|ƒ}n|dkrRtd|ƒ‚nx|jD]}|j|=q\Wx|jD]}|j|=qzW|jjj    |ƒdS(Nsno such option %r(
RRUR&RR/RuRvRRhR(RRRRn((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt remove_options  cCs\|js dSg}x9|jD].}|jtk    r|j|j|ƒƒqqWdj|ƒS(NR:(RhRSRR]RgR#(Rt    formatterR`R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytformat_option_help+s    cCs|j|jƒƒS(N(RPR (RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRP4scCsWg}|jr(|j|j|ƒƒn|jrJ|j|j|ƒƒndj|ƒS(Ns
(ROR]RPRhRR#(RRR`((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt format_help7s         (RRRRRRRRR R RRRRRRRRPR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR„s"                                                                        cBs8eZdd„Zd„Zd„Zd„Zd„ZRS(cCs2||_tj||j|j|ƒ||_dS(N(R'RRRRttitle(RR'RRO((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRBs    cCsg|_|j|jƒdS(N(RhRR'(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRHs    cCs ||_dS(N(R(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt    set_titleLscCstj|ƒ|`dS(ssee OptionParser.destroy().N(RR Rh(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR Os cCs@|j|jƒ}|jƒ|tj||ƒ7}|jƒ|S(N(RGRR@RRRB(RRR`((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRVs
 
 
N(RRR&RRRR R(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR@s
             c Bs¦eZdZgZd)d)ed)dd)d)ed)d)d„
Zd„Zd„Z    d„Z
d„Z ed„Z d„Z d    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd)d)d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!dd)d„Z"d„Z#d „Z$d)d!„Z%d"„Z&d)d#„Z'd)d$„Z(d%„Z)d)d&„Z*d'„Z+d)d(„Z,RS(*s$
    Class attributes:
      standard_option_list : [Option]
        list of standard options that will be accepted by all instances
        of this parser class (intended to be overridden by subclasses).
 
    Instance attributes:
      usage : string
        a usage string for your program.  Before it is displayed
        to the user, "%prog" will be expanded to the name of
        your program (self.prog or os.path.basename(sys.argv[0])).
      prog : string
        the name of the current program (to override
        os.path.basename(sys.argv[0])).
      description : string
        A paragraph of text giving a brief overview of your program.
        optparse reformats this paragraph to fit the current terminal
        width and prints it when the user requests help (after usage,
        but before the list of options).
      epilog : string
        paragraph of help text to print after option help
 
      option_groups : [OptionGroup]
        list of option groups in this parser (option groups are
        irrelevant for parsing the command-line, but very useful
        for generating help)
 
      allow_interspersed_args : bool = true
        if true, positional arguments may be interspersed with options.
        Assuming -a and -b each take a single argument, the command-line
          -ablah foo bar -bboo baz
        will be interpreted the same as
          -ablah -bboo -- foo bar baz
        If this flag were false, that command line would be interpreted as
          -ablah -- foo bar -bboo baz
        -- ie. we stop processing options as soon as we see the first
        non-option argument.  (This is the tradition followed by
        Python's getopt module, Perl's Getopt::Std, and other argument-
        parsing libraries, but it is generally annoying to users.)
 
      process_default_values : bool = true
        if true, option default values are processed similarly to option
        values from the command line: that is, they are passed to the
        type-checking function for the option's type (as long as the
        default value is a string).  (This really only matters if you
        have defined custom types; see SF bug #955889.)  Set it to false
        to restore the behaviour of Optik 1.4.1 and earlier.
 
      rargs : [string]
        the argument list currently being parsed.  Only set when
        parse_args() is active, and continually trimmed down as
        we consume arguments.  Mainly there for the benefit of
        callback options.
      largs : [string]
        the list of leftover arguments that we have skipped while
        parsing options.  If allow_interspersed_args is false, this
        list is always empty.
      values : Values
        the set of option values currently being accumulated.  Only
        set when parse_args() is active.  Also mainly for callbacks.
 
    Because of the 'rargs', 'largs', and 'values' attributes,
    OptionParser is not thread-safe.  If, for some perverse reason, you
    need to parse command-line arguments simultaneously in different
    threads, use different OptionParser instances.
 
    R    c Cs¢tj||||ƒ|j|ƒ|    |_||_t|_t|_|dkr_t    ƒ}n||_
|j
j |ƒ|
|_ |j |d|ƒ|jƒdS(Ntadd_help(RRt    set_usagetprogR¢RÕtallow_interspersed_argstprocess_default_valuesR&R    RR9RQt_populate_option_listt_init_parsing_state( RRDRhRR¢RRORtadd_help_optionR"RQ((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR¦s                             cCsAtj|ƒx|jD]}|jƒqW|`|`|`dS(s
        Declare that you are done with this OptionParser.  This cleans up
        reference cycles so the OptionParser (and all objects referenced by
        it) can be garbage-collected promptly.  After calling destroy(), the
        OptionParser is unusable.
        N(RR RkRhR(RRp((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR Ès  cCs g|_g|_|jƒdS(N(RhRkR(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRÚs        cCs&|jdddddtdƒƒdS(Ns-hs--helpR•RSsshow this help message and exit(RR (R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_add_help_optionßscCs#|jddddtdƒƒdS(Ns    --versionR•R¢RSs&show program's version number and exit(RR (R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_add_version_optionäs cCs_|jr|j|jƒn|r2|j|ƒn|jrH|jƒn|r[|jƒndS(N(tstandard_option_listRR¢R)R((RRhR ((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR%és         cCsd|_d|_d|_dS(N(R&trargstlargsRÓ(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR&ós        cCsh|dkrtdƒ|_nF|tkr6d|_n.|jƒjdƒr[|d|_n    ||_dS(Ns%prog [options]susage: i(R&R RDRRR(RRD((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR!üs   cCs t|_dS(sSet parsing to not stop on the first non-option, allowing
        interspersing switches with command arguments. This is the
        default behavior. See also disable_interspersed_args() and the
        class documentation description of the attribute
        allow_interspersed_args.N(RÕR#(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytenable_interspersed_argsscCs t|_dS(séSet parsing to stop on the first non-option. Use this if
        you have a command processor which runs another command that
        has options of its own and you want to make sure these options
        don't get confused.
        N(RÖR#(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytdisable_interspersed_argsscCs ||_dS(N(R$(RRÔ((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytset_process_default_valuesscCs||j|<dS(N(RT(RRVR‹((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt set_defaultscKs|jj|ƒdS(N(RTRð(RRÜ((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt set_defaultsscCs2|j}x!|jD]}|j|jƒqW|S(N(RhRkR_(RtoptionsRp((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_get_all_options s
cCsŒ|jst|jƒS|jjƒ}xZ|jƒD]L}|j|jƒ}t|ƒr2|jƒ}|j    ||ƒ||j<q2q2Wt|ƒS(N(
R$RRTtcopyR3RURVRåRÌRÎ(RRTRR–R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytget_default_values&s        cOs«t|dƒtjkr.t|||Ž}nit|ƒdkrŽ| rŽ|d}t|tƒsptd|‚n|j|k    r—td‚q—n    td‚|j    j
|ƒ|S(Niisnot an OptionGroup instance: %rs"invalid OptionGroup (wrong parser)sinvalid arguments( RR·RâRR\RáR¬R'R/RkR](RRÛRÜRp((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytadd_option_group7s
    cCsD|jj|ƒp!|jj|ƒ}|r@|j|k    r@|jSdS(N(RRURRR&(RRR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytget_option_groupGs
cCs |dkrtjdS|SdS(Ni(R&R÷targv(RRÛ((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt    _get_argsQs  cCs«|j|ƒ}|dkr*|jƒ}n||_g|_}||_y|j|||ƒ}Wn,ttfk
r}|j    t
|ƒƒnX||}|j ||ƒS(sS
        parse_args(args : [string] = sys.argv[1:],
                   values : Values = None)
        -> (values : Values, args : [string])
 
        Parse the command-line options found in 'args' (default:
        sys.argv[1:]).  Any errors result in a call to 'error()', which
        by default prints the usage message to stderr and calls
        sys.exit() with an error message.  On success returns a pair
        (values, args) where 'values' is an Values instance (with all
        your option values) and 'args' is the list of arguments left
        over after parsing options.
        N( R9R&R5R+R,RÓt _process_argsRRR    Rt check_values(RRÛRÓR+R,tstopterr((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt
parse_argsWs          
cCs
||fS(s³
        check_values(values : Values, args : [string])
        -> (values : Values, args : [string])
 
        Check that the supplied option values and leftover arguments are
        valid.  Returns the option values and leftover arguments
        (possibly adjusted, possibly completely new -- whatever you
        like).  Default implementation just returns the passed-in
        values; subclasses may override as desired.
        ((RRÓRÛ((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR;~s cCs±xª|r¬|d}|dkr*|d=dS|dd!dkrP|j||ƒq|d dkr…t|ƒdkr…|j||ƒq|jr¥|j|ƒ|d=qdSqWdS(s˜_process_args(largs : [string],
                         rargs : [string],
                         values : Values)
 
        Process command-line arguments and populate 'values', consuming
        options and arguments from 'rargs'.  If 'allow_interspersed_args' is
        false, stop at the first non-option argument.  If true, accumulate any
        interspersed non-option arguments in 'largs'.
        is--NiiR­(t_process_long_optR\t_process_short_optsR#R](RR,R+RÓtarg((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR:‹s
   
 "     
cCst||jƒS(s_match_long_opt(opt : string) -> string
 
        Determine which long option string 'opt' matches, ie. which one
        it is an unambiguous abbrevation for.  Raises BadOptionError if
        'opt' doesn't unambiguously match any long option string.
        (t _match_abbrevR(RRn((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt_match_long_opt¾sc
Cs_|jdƒ}d|krL|jddƒ\}}|jd|ƒt}n |}t}|j|ƒ}|j|}|jƒr|j}t    |ƒ|krá|dkrÁ|j
t dƒ|ƒq|j
t dƒ||fƒqE|dkrÿ|jdƒ}    qEt |d|!ƒ}    |d|5n&|r?|j
t dƒ|ƒnd}    |j||    ||ƒdS(NiR>is%s option requires an arguments%s option requires %d argumentss%s option does not take a value(tpopRÁtinsertRÕRÖRCRRrR—R\R    R RÏR&RÔ(
RR+RÓRARntnext_argthad_explicit_valueRR—R‹((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR?Çs0              c Cso|jdƒ}t}d}xM|dD]A}d|}|jj|ƒ}|d7}|sgt|ƒ‚n|jƒrA|t|ƒkr¢|jd||ƒt}n|j    }    t|ƒ|    kr|    dkrã|j
t dƒ|ƒq>|j
t dƒ||    fƒqG|    dkr!|jdƒ}
qGt |d|    !ƒ}
|d|    5nd}
|j||
||ƒ|r&Pq&q&WdS(NiiR­s%s option requires an arguments%s option requires %d arguments(RDRÖRRURRrR\RERÕR—R    R RÏR&RÔ( RR+RÓRAR<titchRnRR—R‹((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR@ìs6
 
            cCs1|jdkr&tjjtjdƒS|jSdS(Ni(R"R&R,tpathtbasenameR÷R8(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt get_prog_namescCs|jd|jƒƒS(Ns%prog(RYRL(Rts((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pytexpand_prog_namescCs|j|jƒS(N(RNRO(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR sicCs*|rtjj|ƒntj|ƒdS(N(R÷tstderrtwriteRÙ(RtstatusR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRÙ"scCs4|jtjƒ|jdd|jƒ|fƒdS(sÜerror(msg : string)
 
        Print a usage message incorporating 'msg' to stderr and exit.
        If you override this in a subclass, it should not return -- it
        should either exit or raise an exception.
        is%s: error: %s
N(t print_usageR÷RORÙRL(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR    'scCs-|jr%|jj|j|jƒƒSdSdS(NR:(RDRRERN(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt    get_usage1s        cCs |jr||jƒIJndS(saprint_usage(file : file = stdout)
 
        Print the usage message for the current program (self.usage) to
        'file' (default stdout).  Any occurrence of the string "%prog" in
        self.usage is replaced with the name of the current program
        (basename of sys.argv[0]).  Does nothing if self.usage is empty
        or not defined.
        N(RDRS(Rtfile((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRR8s        cCs!|jr|j|jƒSdSdS(NR:(R¢RN(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt get_versionDs    cCs |jr||jƒIJndS(sEprint_version(file : file = stdout)
 
        Print the version message for this program (self.version) to
        'file' (default stdout).  As with print_usage(), any occurrence
        of "%prog" in self.version is replaced by the current program's
        name.  Does nothing if self.version is empty or undefined.
        N(R¢RU(RRT((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRÚJs    cCsÕ|dkr|j}n|j|ƒg}|j|jtdƒƒƒ|jƒ|jrƒ|jtj    ||ƒƒ|jdƒnx4|j
D])}|j|j |ƒƒ|jdƒqW|j ƒdj |d ƒS(NtOptionss
R:iÿÿÿÿ(R&RRqR]RGR R@RhRRRkRRBR#(RRR`Rp((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRUs   
    
cCs|j|jƒS(N(RRRQ(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRRfscCs |dkr|j}ng}|jrA|j|jƒdƒn|jrg|j|j|ƒdƒn|j|j|ƒƒ|j|j|ƒƒdj    |ƒS(Ns
R:(
R&RRDR]RSRORPRRRR#(RRR`((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRis          cCs+t|ddƒ}|s'tjƒ}n|S(Ntencoding(RºR&R÷tgetdefaultencoding(RRTRW((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt _get_encodingvscCsJ|dkrtj}n|j|ƒ}|j|jƒj|dƒƒdS(s°print_help(file : file = stdout)
 
        Print an extended help message, listing all options and any
        help text provided with them, to 'file' (default stdout).
        RYN(R&R÷tstdoutRYRPRtencode(RRTRW((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRØ|s  N(-RRRR*R&RRÕRR RR(R)R%R&R!R-R.R/R0R1R3R5R6R7R9R>R;R:RCR?R@RLRNR RÙR    RSRRRURÚRRRRRYRØ(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyR^sbD                 
                                               
   '        3            %    *                
                cCsŠ||kr|Sg|jƒD]}|j|ƒr|^q}t|ƒdkrX|dS|smt|ƒ‚n|jƒt||ƒ‚dS(sû_match_abbrev(s : string, wordmap : {string : Option}) -> string
 
    Return the string key in 'wordmap' for which 's' is an unambiguous
    abbreviation.  If 's' is found to be ambiguous or doesn't match any of
    'words', raise BadOptionError.
    iiN(R°RR\RR±R!(RMtwordmaptwordR"((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyRBŠs 
(+Rt __version__t__all__t __copyright__R÷R,R·RJRRt ImportErrorR t    ExceptionR R R RRR!RR    R
RƒR„R†RˆR‰RŠRŽR’RWRRRRæt    NameErrorRåRRRRRBR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/optparse.pyt<module>s~           
 
 Î                     ÿ{
 
      A¼ÿÿ.