def with_format(ctx): return pretty.formatted( with_header=ctx.parent.params['header'], fmt=ctx.parent.params['format'] or pretty.DEFAULT_FORMAT, )
def with_format(ctx): return pretty.formatted( with_header=ctx.parent.params["header"], fmt=ctx.parent.params["format"] or pretty.DEFAULT_FORMAT, )