Exit in case user invoked program with incorrect arguments.
| 20 | |
| 21 | |
| 22 | class DocoptExit(SystemExit): |
| 23 | |
| 24 | """Exit in case user invoked program with incorrect arguments.""" |
| 25 | |
| 26 | usage = '' |
| 27 | |
| 28 | def __init__(self, message=''): |
| 29 | SystemExit.__init__(self, (message + '\n' + self.usage).strip()) |
| 30 | |
| 31 | |
| 32 | class Pattern(object): |
no outgoing calls
no test coverage detected
searching dependent graphs…