diff --git a/main.py b/main.py index a20220c..b6cd3a6 100755 --- a/main.py +++ b/main.py @@ -1,5 +1,17 @@ #!/usr/bin/python2 +ARG_DESC = ''' +A silly x86-64 emulator and stack visualizer. +''' + +LICENSE = ''' +This program is BEER-WARE. + +Jmaa wrote this program. As long as you retain this notice you +can do whatever you want with this stuff. If we meet some day, and you think +this stuff is worth it, you can buy me a beer in return. +''' + import sys import re @@ -16,7 +28,7 @@ PAINTER_ID_TO_CLASS = { } def parse_args (): - parser = argparse.ArgumentParser(description="For fun x86-64 emulator and stack visualizer.") + parser = argparse.ArgumentParser(description = ARG_DESC, epilog = LICENSE) parser.add_argument('-i', '--input-file', default='-', help = 'File to use as input', dest = 'input-file') parser.add_argument('-o', '--output-file', default='-', help = 'File to use as output', dest = 'output-file') parser.add_argument('-p', '--painter', default='ascii', help = 'Drawer to use', dest = 'painter-name', choices=PAINTER_ID_TO_CLASS.keys())