(self, *alt)
| 250 | return shlex.split(from_utf8(args), posix=not IS_WINDOWS) |
| 251 | |
| 252 | def getopt(self, *alt): |
| 253 | for opt in alt: |
| 254 | try: |
| 255 | return self.options[opt] |
| 256 | except KeyError: |
| 257 | pass |
| 258 | raise KeyError(alt[0]) |
| 259 | |
| 260 | def __repr__(self): |
| 261 | return f'<{type(self).__name__}: {self.name}>' |