1
0

Added license

This commit is contained in:
Jon Michael Aanes 2018-02-06 18:12:18 +01:00
parent 43584807b1
commit 0fc2338919

14
main.py
View File

@ -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())