.happydoc.CommandLineApp.py :  » Development » HappyDoc » HappyDoc3-r3_1 » happydoclib » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Development » HappyDoc 
HappyDoc » HappyDoc3 r3_1 » happydoclib » .happydoc.CommandLineApp.py
(S'd0ced967d8640633048b5b6a586e95dc'
p1
(ihappydoclib.parseinfo.moduleinfo
ModuleInfo
p2
(dp3
S'_namespaces'
p4
((dp5
S'SubClassTestApp'
p6
(ihappydoclib.parseinfo.classinfo
ClassInfo
p7
(dp8
g4
((dp9
(dp10
S'main'
p11
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p12
(dp13
g4
((dp14
(dp15
tp16
sS'_exception_info'
p17
(dp18
S"'not an error'"
p19
NssS'_parameter_names'
p20
(S'self'
p21
S'*args'
p22
tp23
sS'_parameter_info'
p24
(dp25
g22
(NNNtp26
sg21
(NNNtp27
ssS'_filename'
p28
S'../HappyDoc3-r3_1/happydoclib/CommandLineApp.py'
p29
sS'_docstring'
p30
S''
sS'_name'
p31
g11
sS'_parent'
p32
g7
sS'_comment_info'
p33
(dp34
sS'_configuration_values'
p35
(dp36
sS'_class_info'
p37
g14
sS'_function_info'
p38
g15
sS'_comments'
p39
S''
sbsS'optionHandler_option_list'
p40
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p41
(dp42
g4
((dp43
(dp44
tp45
sg17
(dp46
sg20
(S'self'
p47
S'optionList'
p48
tp49
sg24
(dp50
g47
(NNNtp51
sg48
(NNNtp52
ssg28
g29
sg30
S'Doc string for SubClassTestApp'
p53
sg31
g40
sg32
g7
sg33
g34
sg35
(dp54
sg37
g43
sg38
g44
sg39
S''
sbsS'optionHandler_z'
p55
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p56
(dp57
g4
((dp58
(dp59
tp60
sg17
(dp61
sg20
(S'self'
p62
tp63
sg24
(dp64
g62
(NNNtp65
ssg28
g29
sg30
S'Doc string for SubClassTestApp'
p66
sg31
g55
sg32
g7
sg33
g34
sg35
(dp67
sg37
g58
sg38
g59
sg39
S''
sbsS'optionHandler_a'
p68
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p69
(dp70
g4
((dp71
(dp72
tp73
sg17
(dp74
sg20
(S'self'
p75
S'newA'
p76
tp77
sg24
(dp78
g75
(NNNtp79
sg76
(NNNtp80
ssg28
g29
sg30
S'Doc string for SubClassTestApp'
p81
sg31
g68
sg32
g7
sg33
g34
sg35
(dp82
sg37
g71
sg38
g72
sg39
S''
sbstp83
sg28
g29
sg30
S'new doc string'
p84
sS'_class_member_info'
p85
(lp86
sg31
g6
sg32
g2
sg33
g34
sS'_base_class_info'
p87
(lp88
S'TestApp'
p89
asg35
(dp90
sg37
g9
sg38
g10
sg39
S''
sbsS'TestApp'
p91
(ihappydoclib.parseinfo.classinfo
ClassInfo
p92
(dp93
g4
((dp94
(dp95
S'main'
p96
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p97
(dp98
g4
((dp99
(dp100
tp101
sg17
(dp102
sg20
(S'self'
p103
S'*args'
p104
tp105
sg24
(dp106
g104
(NNNtp107
sg103
(NNNtp108
ssg28
g29
sg30
S'main loop'
p109
sg31
g96
sg32
g92
sg33
g34
sg35
(dp110
sg37
g99
sg38
g100
sg39
S''
sbsS'optionHandler_long_form_with_value'
p111
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p112
(dp113
g4
((dp114
(dp115
tp116
sg17
(dp117
sg20
(S'self'
p118
S'optValue'
p119
tp120
sg24
(dp121
g118
(NNNtp122
sg119
(NNNtp123
ssg28
g29
sg30
S'First line of help.\n            get a value for long form option\n\n            Default:<manually inserted>'
p124
sg31
g111
sg32
g92
sg33
g34
sg35
(dp125
sg37
g114
sg38
g115
sg39
S''
sbsS'optionHandler_long_form_option'
p126
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p127
(dp128
g4
((dp129
(dp130
tp131
sg17
(dp132
sg20
(S'self'
p133
tp134
sg24
(dp135
g133
(NNNtp136
ssg28
g29
sg30
S'boolean option'
p137
sg31
g126
sg32
g92
sg33
g34
sg35
(dp138
sg37
g129
sg38
g130
sg39
S''
sbsS'optionHandler_b'
p139
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p140
(dp141
g4
((dp142
(dp143
tp144
sg17
(dp145
sg20
(S'self'
p146
tp147
sg24
(dp148
g146
(NNNtp149
ssg28
g29
sg30
S'toggle the value of b'
p150
sg31
g139
sg32
g92
sg33
g34
sg35
(dp151
sg37
g142
sg38
g143
sg39
S''
sbsS'optionHandler_a'
p152
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p153
(dp154
g4
((dp155
(dp156
tp157
sg17
(dp158
sg20
(S'self'
p159
S'optValue'
p160
tp161
sg24
(dp162
g159
(NNNtp163
sg160
(NNNtp164
ssg28
g29
sg30
S'get a value for a'
p165
sg31
g152
sg32
g92
sg33
g34
sg35
(dp166
sg37
g155
sg38
g156
sg39
S''
sbstp167
sg28
g29
sg30
S'    This is a simple test application.\n\n    It defines several optionHandler methods to handle\n    some example options.  One option of each type is\n    handled by an example.\n\n    The __doc__ string for the class should contain\n    the info about how to use the application. '
p168
sg85
(lp169
S'examplesDescription'
p170
aS'argumentsDescription'
p171
aS'defaultLongFormOption'
p172
asg31
g91
sg32
g2
sg33
g34
sg87
(lp173
S'CommandLineApp'
p174
asg35
(dp175
sg37
g94
sg38
g95
sg39
S''
sbsS'CommandLineApp'
p176
(ihappydoclib.parseinfo.classinfo
ClassInfo
p177
(dp178
g4
((dp179
(dp180
S'debugMethodEntry'
p181
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p182
(dp183
g4
((dp184
(dp185
tp186
sg17
(dp187
sg20
(S'self'
p188
S'methodName'
p189
S'debugLevel'
p190
S'**nargs'
p191
tp192
sg24
(dp193
g188
(NNNtp194
sg189
(NNNtp195
sg191
(NNNtp196
sg190
(I1
S'3'
Ntp197
ssg28
g29
sg30
S'Print a method entry debug statement with named arguments.'
p198
sg31
g181
sg32
g177
sg33
g34
sg35
(dp199
sg37
g184
sg38
g185
sg39
S''
sbsS'appInit'
p200
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p201
(dp202
g4
((dp203
(dp204
tp205
sg17
(dp206
sg20
(S'self'
p207
tp208
sg24
(dp209
g207
(NNNtp210
ssg28
g29
sg30
S'Override this method to perform application initialization.\n\n        This hook may be easier to override than the __init__ method,\n        since it takes no parameters.\n        '
p211
sg31
g200
sg32
g177
sg33
g34
sg35
(dp212
sg37
g203
sg38
g204
sg39
S''
sbsS'getOptionHelpString'
p213
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p214
(dp215
g4
((dp216
(dp217
tp218
sg17
(dp219
sg20
(S'self'
p220
S'dashInsert'
p221
S'option'
p222
S'valueInsert'
p223
S'docString'
p224
tp225
sg24
(dp226
g221
(NNNtp227
sg220
(NNNtp228
sg224
(NNNtp229
sg222
(NNNtp230
sg223
(NNNtp231
ssg28
g29
sg30
S'Build the help string for an option.'
p232
sg31
g213
sg32
g177
sg33
g34
sg35
(dp233
sg37
g216
sg38
g217
sg39
S''
sbsS'showOptionHelp'
p234
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p235
(dp236
g4
((dp237
(dp238
tp239
sg17
(dp240
sg20
(S'self'
p241
S'dashInsert'
p242
S'option'
p243
S'valueInsert'
p244
S'docString'
p245
tp246
sg24
(dp247
g242
(NNNtp248
sg241
(NNNtp249
sg245
(NNNtp250
sg243
(NNNtp251
sg244
(NNNtp252
ssg28
g29
sg30
S'Format and print the help message for a single option.'
p253
sg31
g234
sg32
g177
sg33
g34
sg35
(dp254
sg37
g237
sg38
g238
sg39
S''
sbsS'__init__'
p255
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p256
(dp257
g4
((dp258
(dp259
tp260
sg17
(dp261
sg20
(S'self'
p262
S'commandLineOptions'
p263
tp264
sg24
(dp265
g262
(NNNtp266
sg263
(I1
S'sys.argv [ 1 : ]'
Ntp267
ssg28
g29
sg30
S'Initialize CommandLineApp.'
p268
sg31
g255
sg32
g177
sg33
g34
sg35
(dp269
sg37
g258
sg38
g259
sg39
S''
sbsS'showHelp'
p270
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p271
(dp272
g4
((dp273
(dp274
tp275
sg17
(dp276
sg20
(S'self'
p277
S'errorMessage'
p278
tp279
sg24
(dp280
g277
(NNNtp281
sg278
(I1
S'None'
Ntp282
ssg28
g29
sg30
S'Display help message when error occurs.'
p283
sg31
g270
sg32
g177
sg33
g34
sg35
(dp284
sg37
g273
sg38
g274
sg39
S''
sbsS'methodNameFromOption'
p285
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p286
(dp287
g4
((dp288
(dp289
tp290
sg17
(dp291
sg20
(S'self'
p292
S'option'
p293
tp294
sg24
(dp295
g292
(NNNtp296
sg293
(NNNtp297
ssg28
g29
sg30
S'Given the name of an option, construct \n        and return the name of the method to handle it.\n        '
p298
sg31
g285
sg32
g177
sg33
g34
sg35
(dp299
sg37
g288
sg38
g289
sg39
S''
sbsS'optionHandler_q'
p300
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p301
(dp302
g4
((dp303
(dp304
tp305
sg17
(dp306
sg20
(S'self'
p307
tp308
sg24
(dp309
g307
(NNNtp310
ssg28
g29
sg30
S'Turn on quiet mode.'
p311
sg31
g300
sg32
g177
sg33
g34
sg35
(dp312
sg37
g303
sg38
g304
sg39
S''
sbsS'showVerboseSyntaxHelp'
p313
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p314
(dp315
g4
((dp316
(dp317
tp318
sg17
(dp319
sg20
(S'self'
p320
tp321
sg24
(dp322
g320
(NNNtp323
ssg28
g29
sg30
S'Show a full description of all options and arguments.'
p324
sg31
g313
sg32
g177
sg33
g34
sg35
(dp325
sg37
g316
sg38
g317
sg39
S''
sbsS'optionHandler_v'
p326
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p327
(dp328
g4
((dp329
(dp330
tp331
sg17
(dp332
sg20
(S'self'
p333
tp334
sg24
(dp335
g333
(NNNtp336
ssg28
g29
sg30
S'Increment the verbose level.\n        Higher levels are more verbose.\n        The default is 1.\n        '
p337
sg31
g326
sg32
g177
sg33
g34
sg35
(dp338
sg37
g329
sg38
g330
sg39
S''
sbsS'main'
p339
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p340
(dp341
g4
((dp342
(dp343
tp344
sg17
(dp345
sg20
(S'self'
p346
S'*args'
p347
tp348
sg24
(dp349
g347
(NNNtp350
sg346
(NNNtp351
ssg28
g29
sg30
S'Main body of your application.\n\n        This is the main portion of the app, and is run after all of\n        the arguments are processed.  Override this method to implment\n        the primary processing section of your application.\n        '
p352
sg31
g339
sg32
g177
sg33
g34
sg35
(dp353
sg37
g342
sg38
g343
sg39
S''
sbsS'statusMessage'
p354
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p355
(dp356
g4
((dp357
(dp358
tp359
sg17
(dp360
sg20
(S'self'
p361
S'msg'
p362
S'verboseLevel'
p363
S'error'
p364
tp365
sg24
(dp366
g362
(I1
S"''"
Ntp367
sg363
(I1
S'1'
Ntp368
sg361
(NNNtp369
sg364
(I1
S'None'
Ntp370
ssg28
g29
sg30
S"Print a status message to output.\n        \n        Arguments\n        \n            msg=''            -- The status message string to be printed.\n            \n            verboseLevel=1    -- The verbose level to use.  The message\n                              will only be printed if the current verbose\n                              level is >= this number.\n                              \n            error=None        -- If true, the message is considered an error and\n                              printed as such.\n                              \n        "
p371
sg31
g354
sg32
g177
sg33
g34
sg35
(dp372
sg37
g357
sg38
g358
sg39
S''
sbsS'run'
p373
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p374
(dp375
g4
((dp376
(dp377
tp378
sg17
(dp379
sg20
(S'self'
p380
tp381
sg24
(dp382
g380
(NNNtp383
ssg28
g29
sg30
S'Entry point.\n\n        Process options and execute callback functions as needed.\n        This method should not need to be overridden, if the main()\n        method is defined.\n        '
p384
sg31
g373
sg32
g177
sg33
g34
sg35
(dp385
sg37
g376
sg38
g377
sg39
S''
sbsS'showSimpleSyntaxHelp'
p386
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p387
(dp388
g4
((dp389
(dp390
tp391
sg17
(dp392
sg20
(S'self'
p393
tp394
sg24
(dp395
g393
(NNNtp396
ssg28
g29
sg30
S'Show basic syntax message.'
p397
sg31
g386
sg32
g177
sg33
g34
sg35
(dp398
sg37
g389
sg38
g390
sg39
S''
sbsS'errorMessage'
p399
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p400
(dp401
g4
((dp402
(dp403
tp404
sg17
(dp405
sg20
(S'self'
p406
S'msg'
p407
tp408
sg24
(dp409
g407
(I1
S"''"
Ntp410
sg406
(NNNtp411
ssg28
g29
sg30
S'Print a message as an error.'
p412
sg31
g399
sg32
g177
sg33
g34
sg35
(dp413
sg37
g402
sg38
g403
sg39
S''
sbsS'__init_getopt__'
p414
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p415
(dp416
g4
((dp417
(dp418
tp419
sg17
(dp420
S'getopt.error, message'
p421
Nssg20
(S'self'
p422
tp423
sg24
(dp424
g422
(NNNtp425
ssg28
g29
sg30
S'Parse the command line options.'
p426
sg31
g414
sg32
g177
sg33
g34
sg35
(dp427
sg37
g417
sg38
g418
sg39
S''
sbsS'longOptionsListGet'
p428
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p429
(dp430
g4
((dp431
(dp432
tp433
sg17
(dp434
sg20
(S'self'
p435
tp436
sg24
(dp437
g435
(NNNtp438
ssg28
g29
sg30
S'Given the information learned through self.__learnValidOpts__,\n        construct a list to be passed to getopt to set the valid\n        long form option syntax.\n        '
p439
sg31
g428
sg32
g177
sg33
g34
sg35
(dp440
sg37
g431
sg38
g432
sg39
S''
sbsS'infoForOption'
p441
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p442
(dp443
g4
((dp444
(dp445
tp446
sg17
(dp447
sg20
(S'self'
p448
S'option'
p449
tp450
sg24
(dp451
g448
(NNNtp452
sg449
(NNNtp453
ssg28
g29
sg30
S'Get the stored information about an option.'
p454
sg31
g441
sg32
g177
sg33
g34
sg35
(dp455
sg37
g444
sg38
g445
sg39
S''
sbsS'__learnValidOpts__'
p456
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p457
(dp458
g4
((dp459
(dp460
tp461
sg17
(dp462
sg20
(S'self'
p463
tp464
sg24
(dp465
g463
(NNNtp466
ssg28
g29
sg30
S'Derive the options which are valid for this application.\n\n        Examine the methods defined for this class to\n        learn what options the developer wants to use.  Options\n        can be added by defining an optionHandler method with a\n        name like optionHandler_<option name>.  If the option\n        handler method takes an argument, the option will require\n        an argument as well.\n        '
p467
sg31
g456
sg32
g177
sg33
g34
sg35
(dp468
sg37
g459
sg38
g460
sg39
S''
sbsS'getVerboseSyntaxHelpString'
p469
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p470
(dp471
g4
((dp472
(dp473
tp474
sg17
(dp475
sg20
(S'self'
p476
tp477
sg24
(dp478
g476
(NNNtp479
ssg28
g29
sg30
S'Return the full description of the options and arguments.\n\n        Show a full description of the options and arguments to the\n        command in something like UNIX man page format. This includes\n        \n          - a description of each option and argument, taken from the\n                __doc__ string for the optionHandler method for\n                the option\n                \n          - a description of what additional arguments will be processed,\n                taken from the class member argumentsDescription\n                \n        '
p480
sg31
g469
sg32
g177
sg33
g34
sg35
(dp481
sg37
g472
sg38
g473
sg39
S''
sbsS'constructOptionInfo'
p482
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p483
(dp484
g4
((dp485
(dp486
tp487
sg17
(dp488
sg20
(S'self'
p489
S'methodName'
p490
S'methodRef'
p491
tp492
sg24
(dp493
g489
(NNNtp494
sg491
(NNNtp495
sg490
(NNNtp496
ssg28
g29
sg30
S'Return an info tuple for an option handler method.\n\n        Given a method name, return the information tuple\n        for that option to the program.  The tuple contains:\n\n          (option name,\n          flag showing whether the option takes a value,\n          flag indicating long or short form option,\n          help string for option)\n        '
p497
sg31
g482
sg32
g177
sg33
g34
sg35
(dp498
sg37
g485
sg38
g486
sg39
S''
sbsS'getSimpleSyntaxHelpString'
p499
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p500
(dp501
g4
((dp502
(dp503
tp504
sg17
(dp505
sg20
(S'self'
p506
tp507
sg24
(dp508
g506
(NNNtp509
ssg28
g29
sg30
S'Return syntax statement.\n        \n        Return a simplified form of help including only the \n        syntax of the command.\n        '
p510
sg31
g499
sg32
g177
sg33
g34
sg35
(dp511
sg37
g502
sg38
g503
sg39
S''
sbsS'shortOptionsStringGet'
p512
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p513
(dp514
g4
((dp515
(dp516
tp517
sg17
(dp518
sg20
(S'self'
p519
tp520
sg24
(dp521
g519
(NNNtp522
ssg28
g29
sg30
S'Given the information learned through self.__learnValidOpts__,\n        construct a string to be passed to getopt to set the valid\n        single character option syntax.\n        '
p523
sg31
g512
sg32
g177
sg33
g34
sg35
(dp524
sg37
g515
sg38
g516
sg39
S''
sbsS'showVerboseHelp'
p525
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p526
(dp527
g4
((dp528
(dp529
tp530
sg17
(dp531
sg20
(S'self'
p532
tp533
sg24
(dp534
g532
(NNNtp535
ssg28
g29
sg30
S'Show a verbose help message explaining how to use the program.\n\n        This includes:\n        \n           * a verbose description of the program, taken from the __doc__\n             string for the class\n             \n           * an explanation of each option, produced by\n             showVerboseSyntaxHelp()\n             \n           * examples of how to use the program for specific tasks,\n             taken from the class member examplesDescription\n             \n        '
p536
sg31
g525
sg32
g177
sg33
g34
sg35
(dp537
sg37
g528
sg38
g529
sg39
S''
sbsS'handleHelpOption'
p538
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p539
(dp540
g4
((dp541
(dp542
tp543
sg17
(dp544
S"self.HelpRequested, 'Help message was printed.'"
p545
Nssg20
(S'self'
p546
tp547
sg24
(dp548
g546
(NNNtp549
ssg28
g29
sg30
S''
sg31
g538
sg32
g177
sg33
g34
sg35
(dp550
sg37
g541
sg38
g542
sg39
S''
sbsS'scanClassForOptions'
p551
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p552
(dp553
g4
((dp554
(dp555
tp556
sg17
(dp557
S"CommandLineApp.ReservedOptionName, 'h'"
p558
Nssg20
(S'self'
p559
S'cRef'
p560
tp561
sg24
(dp562
g559
(NNNtp563
sg560
(NNNtp564
ssg28
g29
sg30
S'Scan through the inheritence hierarchy to find option handlers.'
p565
sg31
g551
sg32
g177
sg33
g34
sg35
(dp566
sg37
g554
sg38
g555
sg39
S''
sbsS'methodReferenceFromName'
p567
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p568
(dp569
g4
((dp570
(dp571
tp572
sg17
(dp573
sg20
(S'self'
p574
S'methodName'
p575
tp576
sg24
(dp577
g574
(NNNtp578
sg575
(NNNtp579
ssg28
g29
sg30
S'Return a reference to the method with the given name.'
p580
sg31
g567
sg32
g177
sg33
g34
sg35
(dp581
sg37
g570
sg38
g571
sg39
S''
sbstp582
sg28
g29
sg30
S'Base class for building command line applications.\n    \n    Define a __doc__ string for the class to explain what the\n    program does.\n\n    When the argumentsDescription field is not empty,\n    it will be printed appropriately in the help message.\n    \n    When the examplesDescription field is not empty,\n    it will be printed last in the help message when\n    the user asks for help.\n    '
p583
sg85
(lp584
S'argumentsDescription'
p585
aS'shortArgumentsDescription'
p586
aS'examplesDescription'
p587
aS'ReservedOptionName'
p588
aS'HelpRequested'
p589
aS'InvalidOptionValue'
p590
aS'InvalidArgument'
p591
aS'optionHandlerPrefix'
p592
aS'optTypeLong'
p593
aS'optTypeShort'
p594
aS'optTakesParam'
p595
aS'optNoParam'
p596
aS'verboseLevel'
p597
aS'_app_version'
p598
asg31
g176
sg32
g2
sg33
g34
sg87
(lp599
sg35
(dp600
sg37
g179
sg38
g180
sg39
S''
sbsS'CLATestCase'
p601
(ihappydoclib.parseinfo.classinfo
ClassInfo
p602
(dp603
g4
((dp604
(dp605
S'testLongHelpGeneratoion'
p606
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p607
(dp608
g4
((dp609
(dp610
tp611
sg17
(dp612
sg20
(S'self'
p613
tp614
sg24
(dp615
g613
(NNNtp616
ssg28
g29
sg30
S''
sg31
g606
sg32
g602
sg33
g34
sg35
(dp617
sg37
g609
sg38
g610
sg39
S''
sbsS'testShortHelpGeneration'
p618
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p619
(dp620
g4
((dp621
(dp622
tp623
sg17
(dp624
sg20
(S'self'
p625
tp626
sg24
(dp627
g625
(NNNtp628
ssg28
g29
sg30
S''
sg31
g618
sg32
g602
sg33
g34
sg35
(dp629
sg37
g621
sg38
g622
sg39
S''
sbsS'runAndCatchOutput'
p630
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p631
(dp632
g4
((dp633
(dp634
tp635
sg17
(dp636
sg20
(S'self'
p637
S'args'
p638
tp639
sg24
(dp640
g637
(NNNtp641
sg638
(NNNtp642
ssg28
g29
sg30
S''
sg31
g630
sg32
g602
sg33
g34
sg35
(dp643
sg37
g633
sg38
g634
sg39
S''
sbsS'testArgsToMain'
p644
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p645
(dp646
g4
((dp647
S'CLALongOptionTest'
p648
(ihappydoclib.parseinfo.classinfo
ClassInfo
p649
(dp650
g4
((dp651
(dp652
S'main'
p653
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p654
(dp655
g4
((dp656
(dp657
tp658
sg17
(dp659
sg20
(S'self'
p660
S'*args'
p661
tp662
sg24
(dp663
g661
(NNNtp664
sg660
(NNNtp665
ssg28
g29
sg30
S''
sg31
g653
sg32
g649
sg33
g34
sg35
(dp666
sg37
g656
sg38
g657
sg39
S''
sbsS'optionHandler_t'
p667
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p668
(dp669
g4
((dp670
(dp671
tp672
sg17
(dp673
sg20
(S'self'
p674
tp675
sg24
(dp676
g674
(NNNtp677
ssg28
g29
sg30
S''
sg31
g667
sg32
g649
sg33
g34
sg35
(dp678
sg37
g670
sg38
g671
sg39
S''
sbstp679
sg28
g29
sg30
S''
sg85
(lp680
S'expected_args'
p681
asg31
g648
sg32
g645
sg33
g34
sg87
(lp682
S'CommandLineApp'
p683
asg35
(dp684
sg37
g651
sg38
g652
sg39
S''
sbs(dp685
tp686
sg17
(dp687
sg20
(S'self'
p688
tp689
sg24
(dp690
g688
(NNNtp691
ssg28
g29
sg30
S''
sg31
g644
sg32
g602
sg33
g34
sg35
(dp692
sg37
g647
sg38
g685
sg39
S''
sbsS'testLongOptions'
p693
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p694
(dp695
g4
((dp696
S'CLALongOptionTest'
p697
(ihappydoclib.parseinfo.classinfo
ClassInfo
p698
(dp699
g4
((dp700
(dp701
S'optionHandler_test'
p702
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p703
(dp704
g4
((dp705
(dp706
tp707
sg17
(dp708
sg20
(S'self'
p709
tp710
sg24
(dp711
g709
(NNNtp712
ssg28
g29
sg30
S'Expects no arguments.'
p713
sg31
g702
sg32
g698
sg33
g34
sg35
(dp714
sg37
g705
sg38
g706
sg39
S''
sbsS'optionHandler_test_args'
p715
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p716
(dp717
g4
((dp718
(dp719
tp720
sg17
(dp721
sg20
(S'self'
p722
S'args'
p723
tp724
sg24
(dp725
g722
(NNNtp726
sg723
(NNNtp727
ssg28
g29
sg30
S'Expects some arguments'
p728
sg31
g715
sg32
g698
sg33
g34
sg35
(dp729
sg37
g718
sg38
g719
sg39
S''
sbstp730
sg28
g29
sg30
S''
sg85
(lp731
sg31
g697
sg32
g694
sg33
g34
sg87
(lp732
S'CommandLineApp'
p733
asg35
(dp734
sg37
g700
sg38
g701
sg39
S''
sbs(dp735
tp736
sg17
(dp737
sg20
(S'self'
p738
tp739
sg24
(dp740
g738
(NNNtp741
ssg28
g29
sg30
S''
sg31
g693
sg32
g602
sg33
g34
sg35
(dp742
sg37
g696
sg38
g735
sg39
S''
sbsS'testOptionList'
p743
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p744
(dp745
g4
((dp746
S'CLAOptionListTest'
p747
(ihappydoclib.parseinfo.classinfo
ClassInfo
p748
(dp749
g4
((dp750
(dp751
S'optionHandler_t'
p752
(ihappydoclib.parseinfo.functioninfo
FunctionInfo
p753
(dp754
g4
((dp755
(dp756
tp757
sg17
(dp758
sg20
(S'self'
p759
S'options'
p760
tp761
sg24
(dp762
g759
(NNNtp763
sg760
(NNNtp764
ssg28
g29
sg30
S'Expects multiple arguments.'
p765
sg31
g752
sg32
g748
sg33
g34
sg35
(dp766
sg37
g755
sg38
g756
sg39
S''
sbstp767
sg28
g29
sg30
S''
sg85
(lp768
S'expected_options'
p769
aS'optionHandler_option_list'
p770
asg31
g747
sg32
g744
sg33
g34
sg87
(lp771
S'CommandLineApp'
p772
asg35
(dp773
sg37
g750
sg38
g751
sg39
S''
sbs(dp774
tp775
sg17
(dp776
sg20
(S'self'
p777
tp778
sg24
(dp779
g777
(NNNtp780
ssg28
g29
sg30
S''
sg31
g743
sg32
g602
sg33
g34
sg35
(dp781
sg37
g746
sg38
g774
sg39
S''
sbstp782
sg28
g29
sg30
S''
sg85
(lp783
sg31
g601
sg32
g2
sg33
g34
sg87
(lp784
S'unittest.TestCase'
p785
asg35
(dp786
sg37
g604
sg38
g605
sg39
S''
sbs(dp787
tp788
sS'_import_info'
p789
(ihappydoclib.parseinfo.imports
ImportInfo
p790
(dp791
S'_named_imports'
p792
(dp793
sS'_straight_imports'
p794
(lp795
sbsg28
g29
sg30
S'"""Base class for building command line applications.\n\n  The CommandLineApp class makes creating command line applications as\n  simple as defining callbacks to handle options when they appear in\n  \'sys.argv\'.\n\n  To do\n\n    - enhance intelligence of option handling\n\n        - boolean options should not need to be implemented as functions\n\n        - enable/disable with/without options\n\n        - type checking for option arguments\n\n"""'
p796
sg31
S'CommandLineApp'
p797
sg32
Nsg33
g34
sg35
(dp798
S'include_comments'
p799
I1
sS'cacheFilePrefix'
p800
S'.happydoc.'
p801
sS'useCache'
p802
I1
sS'docStringFormat'
p803
S'StructuredText'
p804
ssg37
g5
sg38
g787
sg39
S''
sbt.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.