def dispatch(parser, argv=None, add_help_command=True, encoding=None,
- intercept=False, completion=True, pre_call=None):
+ intercept=False, completion=True, pre_call=None,
"""Parses given list of arguments using given parser, calls the relevant
function and prints the result.
If `True`, results are returned as strings. If `False`, results are
printed to stdout. Default is `False`.
+ If `True`, results are written to the output file raw, without adding
+ whitespaces or newlines between yielded strings. Default is `False`.
If `True`, shell tab completion is enabled. Default is `True`. (You
# print the line as soon as it is generated to ensure that it is
# displayed to the user before anything else happens, e.g.
- print _encode(line, encoding)
+ output = _encode(line, encoding)