diff --git a/bin/loopy b/bin/loopy index c8cbea1c615c396d3903df24472822cc918d3461..b47127740b4d016d823de3874fd7398c031d8160 100644 --- a/bin/loopy +++ b/bin/loopy @@ -186,8 +186,8 @@ def main(): code, impl_arg_info = generate_code(kernel) codes.append(code) - if args.outfile: - outfile, = args.outfile + if args.outfile is not None: + outfile = args.outfile else: outfile = "-"