Method
__init__
(self,
prog=None,
usage=None,
description=None,
epilog=None,
parents=None,
formatter_class=MagicHelpFormatter,
prefix_chars='-',
argument_default=None,
conflict_handler='error',
add_help=False)
Source from the content-addressed store, hash-verified
| 106 | """ An ArgumentParser tweaked for use by IPython magics. |
| 107 | """ |
| 108 | def __init__(self, |
| 109 | prog=None, |
| 110 | usage=None, |
| 111 | description=None, |
| 112 | epilog=None, |
| 113 | parents=None, |
| 114 | formatter_class=MagicHelpFormatter, |
| 115 | prefix_chars='-', |
| 116 | argument_default=None, |
| 117 | conflict_handler='error', |
| 118 | add_help=False): |
| 119 | if parents is None: |
| 120 | parents = [] |
| 121 | super(MagicArgumentParser, self).__init__(prog=prog, usage=usage, |
| 122 | description=description, epilog=epilog, |
| 123 | parents=parents, formatter_class=formatter_class, |
| 124 | prefix_chars=prefix_chars, argument_default=argument_default, |
| 125 | conflict_handler=conflict_handler, add_help=add_help) |
| 126 | |
| 127 | def error(self, message): |
| 128 | """ Raise a catchable error instead of exiting. |
Callers
nothing calls this directly
Tested by
no test coverage detected