about summary refs log tree commit diff stats
path: root/example/asm
diff options
context:
space:
mode:
authorIvan “CLOVIS” Canet <ivan.canet@gmail.com>2022-03-08 10:38:22 +0100
committerIvan “CLOVIS” Canet <ivan.canet@gmail.com>2022-03-08 10:38:22 +0100
commitf15b490908227dbd2be7aa58abcd2c0c9872b612 (patch)
treea4a31dc3e809e9c87845d2a7be285cc386292bbd /example/asm
parentb9ecc43cf5ae1583cb9a1e053bac5be2e6c68aa0 (diff)
downloadmiasm-f15b490908227dbd2be7aa58abcd2c0c9872b612.tar.gz
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`
Diffstat (limited to 'example/asm')
-rwxr-xr-xexample/asm/shellcode.py2
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")