reccomp.py: -h/--help for help -H/--htmp for html

This commit is contained in:
Anonymous Maarten 2023-06-21 17:27:26 +00:00 committed by GitHub
parent 518586cecd
commit d823f3ff84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,15 +8,14 @@
import os
import sys
parser = argparse.ArgumentParser(allow_abbrev=False, add_help=False,
parser = argparse.ArgumentParser(allow_abbrev=False,
description='Compare an original EXE with a recompiled EXE + PDB.')
parser.add_argument('original', metavar='original-binary', help='The original binary')
parser.add_argument('recompiled', metavar='recompiled-binary', help='The recompiled binary')
parser.add_argument('pdb', metavar='recompiled-pdb', help='The PDB of the recompiled binary')
parser.add_argument('decomp_dir', metavar='decomp-dir', help='The decompiled source tree')
parser.add_argument('--verbose', '-v', metavar='offset', help='Print assembly diff for specific function (original file\'s offset)')
parser.add_argument('--html', '-h', metavar='output-file', help='Generate searchable HTML summary of status and diffs')
parser.add_argument('--help', action='help', help='Show this help message and exit')
parser.add_argument('--html', '-H', metavar='output-file', help='Generate searchable HTML summary of status and diffs')
args = parser.parse_args()