diff options
| author | Ivan “CLOVIS” Canet <ivan.canet@gmail.com> | 2022-03-08 10:38:22 +0100 |
|---|---|---|
| committer | Ivan “CLOVIS” Canet <ivan.canet@gmail.com> | 2022-03-08 10:38:22 +0100 |
| commit | f15b490908227dbd2be7aa58abcd2c0c9872b612 (patch) | |
| tree | a4a31dc3e809e9c87845d2a7be285cc386292bbd | |
| parent | b9ecc43cf5ae1583cb9a1e053bac5be2e6c68aa0 (diff) | |
| download | focaccia-miasm-f15b490908227dbd2be7aa58abcd2c0c9872b612.tar.gz focaccia-miasm-f15b490908227dbd2be7aa58abcd2c0c9872b612.zip | |
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`
| -rwxr-xr-x | example/asm/shellcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
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") |