def run(self, config, args):
        concurrency = self.parse_concurrency(args)
        if args['--format'] == "json":
            if not args['<name>']:
                print("you should provide a process type to export")
                sys.exit(1)

            try:
                obj = config.procfile.as_dict(args["<name>"], concurrency)
            except KeyError:
                raise KeyError(args["<name>"] % "%r is not found")

            if args['--out']:
                with open(args['--out'], 'w') as f:
                    json.dump(obj, f, indent=True)

            else:
                print(json.dumps(obj, indent=True))
        else:
            config = config.procfile.as_configparser(concurrency)
            if args['--out']:
                with open(args['--out'], 'w') as f:
                    config.write(f, space_around_delimiters=True)
            else:
                buf = StringIO()
                config.write(buf, space_around_delimiters=True)
                print(buf.getvalue())
dataset/ETHPy150Open benoitc/gaffer/gaffer/cli/commands/export.py/Export.run/swapped operands of `%`