def _output(calls, args):
<EOL>if args.natural_sort or args.source:<EOL><INDENT>calls = sorted(calls, key=lambda c: (c.filename, c.lineno))<EOL><DEDENT>else:<EOL><INDENT>calls = sorted(calls, key=lambda c: c.key)<EOL><DEDENT>out = []<EOL>if args.only_keys:<EOL><INDENT>keys = set()<EOL>for call in calls:<EOL><INDENT>if call.key in keys:<EOL><INDENT>continue<EOL><DEDENT>out.append(_format_call(call, args))<EOL>keys.add(call.key)<EOL><DEDENT>out = '<STR_LIT:\n>'.join(out)<EOL>if args.color:<EOL><INDENT>out = _colorize(out)<EOL><DEDENT>print(out, end='<STR_LIT:U+0020>')<EOL>return<EOL><DEDENT>keys = set()<EOL>for call in calls:<EOL><INDENT>if call.default:<EOL><INDENT>keys.add(call.key)<EOL><DEDENT><DEDENT>for call in calls:<EOL><INDENT>if not args.all and not call.default and call.key in keys:<EOL><INDENT>continue<EOL><DEDENT>out.append(_format_call(call, args))<EOL><DEDENT>out = '<STR_LIT:\n>'.join(out)<EOL>if args.color:<EOL><INDENT>out = _colorize(out)<EOL><DEDENT>print(out, end='<STR_LIT:U+0020>')<EOL>
Outputs `calls`.

:param calls: List of :class:`_PyconfigCall` instances
:param args: :class:`~argparse.ArgumentParser` instance
:type calls: list
:type args: argparse.ArgumentParser