From 0fc2338919e550eef95d62ca875f695b65206cbf Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Tue, 6 Feb 2018 18:12:18 +0100 Subject: [PATCH] Added license --- main.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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())