From f15b490908227dbd2be7aa58abcd2c0c9872b612 Mon Sep 17 00:00:00 2001 From: Ivan “CLOVIS” Canet Date: Tue, 8 Mar 2022 10:38:22 +0100 Subject: Fixed documentation in shellcode.py The first argument to ArgumentParser is the program name, not the description. The previous version displayed invalid usage in the help command: `usage: Multi-arch (32 bits) assembler [-h] [--PE] [-e ENCRYPT ENCRYPT] architecture source output` The new version displays the correct usage: `usage: shellcode.py [-h] [--PE] [-e ENCRYPT ENCRYPT] architecture source output` --- example/asm/shellcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/asm/shellcode.py') diff --git a/example/asm/shellcode.py b/example/asm/shellcode.py index 70d844a9..a04c1776 100755 --- a/example/asm/shellcode.py +++ b/example/asm/shellcode.py @@ -13,7 +13,7 @@ from miasm.core.interval import interval from miasm.core.locationdb import LocationDB from miasm.core.utils import iterbytes, int_to_byte -parser = ArgumentParser("Multi-arch (32 bits) assembler") +parser = ArgumentParser(description="Multi-arch (32 bits) assembler") parser.add_argument('architecture', help="architecture: " + ",".join(Machine.available_machine())) parser.add_argument("source", help="Source file to assemble") -- cgit 1.4.1