(help, version, options, doc)
| 477 | |
| 478 | |
| 479 | def extras(help, version, options, doc): |
| 480 | if help and any((o.name in ('-h', '--help')) and o.value for o in options): |
| 481 | print(doc.strip("\n")) |
| 482 | sys.exit() |
| 483 | if version and any(o.name == '--version' and o.value for o in options): |
| 484 | print(version) |
| 485 | sys.exit() |
| 486 | |
| 487 | |
| 488 | class Dict(dict): |
no outgoing calls
no test coverage detected
searching dependent graphs…