Better argument help

This commit is contained in:
Aéna Aria 2026-04-02 13:19:13 +02:00
parent 17e56ae5a9
commit f46cc2438f

8
iat.py
View file

@ -59,14 +59,14 @@ def link_func_to_dll(func_list):
return res return res
def main(): def main():
parser = argparse.ArgumentParser(prog="iat.py", description="Create a patched PE from a binary dump and a traceCFG file.") parser = argparse.ArgumentParser(prog="iat.py", description="Create a patched PE from a binary dump and a traceCFG file.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# Input arguments # Input arguments
parser.add_argument("dump", type=str, help="The path to the wave dump file") parser.add_argument("dump", type=str, help="The path to the wave dump file (usually ends with .dump)")
parser.add_argument("trace", type=str, help="The path to the traceCFG file") parser.add_argument("trace", type=str, help="The path to the traceCFG file (.json)")
# Additional arguments # Additional arguments
parser.add_argument("-o", "--output", type=str, help="Specify an output filepath for the patched PE.") parser.add_argument("-o", "--output", type=str, default="patched.exe", help="Specify an output filepath for the patched PE.")
parser.add_argument("-w", "--wave", type=int, help="Specify the wave number for the binary dump (if it can't be inferred from the filename)") parser.add_argument("-w", "--wave", type=int, help="Specify the wave number for the binary dump (if it can't be inferred from the filename)")
parser.add_argument("-v", '--verbose', action='store_true', help="Output additional debug info") parser.add_argument("-v", '--verbose', action='store_true', help="Output additional debug info")