(self)
| 253 | self._session = session |
| 254 | |
| 255 | def _get_alias_args(self): |
| 256 | try: |
| 257 | alias_args = shlex.split(self._alias_value) |
| 258 | except ValueError as e: |
| 259 | raise InvalidAliasException( |
| 260 | 'Value of alias "%s" could not be parsed. ' |
| 261 | 'Received error: %s when parsing:\n%s' |
| 262 | % (self._alias_name, e, self._alias_value) |
| 263 | ) |
| 264 | |
| 265 | alias_args = [arg.strip(os.linesep) for arg in alias_args] |
| 266 | LOG.debug( |
| 267 | 'Expanded subcommand alias %r with value: %r to: %r', |
| 268 | self._alias_name, |
| 269 | self._alias_value, |
| 270 | alias_args, |
| 271 | ) |
| 272 | return alias_args |
| 273 | |
| 274 | def _update_parsed_globals( |
| 275 | self, arg_parser, parsed_alias_args, parsed_globals |
no test coverage detected