def giddump(args, parser):
    filenames = args.filename
    if 1 > len(filenames):
        parser.error('Please specify no more than one filename to giddump')
        # The return is only reached with a test parser from the unit tests.
        return 1

    filename = (filenames and filenames[0]) or STDIN
    xcodeproj = data_from_filename(filename)
    root, parseinfo = parse(xcodeproj, parsertype=args.parser)
    report_parse_status(root, parseinfo, filename=filename)
    if root is None:
        return PARSING_FAILED

    projectname = projectname_from_args(args, parser, filename, parseinfo.get('projectname'))

    unparser = Unparser(root)
    # Run the unparser to get the table of gidcomments
    _ = unparser.unparse(root, projectname=projectname)

    if args.outputfile is not None and args.outputfile != '-':
        destfilename = args.outputfile
        with codecs.open(destfilename, 'w', encoding='utf-8') as fp:
            gidsplit(unparser.gidcomments, format=args.gid_format, sort=True, buf=fp)
    else:
        gidsplit(unparser.gidcomments, format=args.gid_format, sort=True)

    return OK

# ----------------------------------------------------------------------
dataset/ETHPy150Open mikr/xcodeprojer/xcodeprojer.py/giddump/swapped operands of `>`