(self)
| 138 | """ |
| 139 | |
| 140 | def __init__(self) -> None: |
| 141 | # we have to use self.__dict__ because we override setattr. |
| 142 | self.__dict__["_options"] = {} |
| 143 | self.__dict__["_parse_callbacks"] = [] |
| 144 | self.define( |
| 145 | "help", |
| 146 | type=bool, |
| 147 | help="show this help information", |
| 148 | callback=self._help_callback, |
| 149 | ) |
| 150 | |
| 151 | def _normalize_name(self, name: str) -> str: |
| 152 | return name.replace("_", "-") |