tDefault to HTML output. - tarot - A Tarot engine
HTML git clone https://git.parazyd.org/tarot
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 93bb6824906676bac8af74d3051a9ca00feb74a0
DIR parent abef80a993a13f5de9591238dbc4d0594fd5a25d
HTML Author: parazyd <parazyd@dyne.org>
Date: Fri, 29 Nov 2019 12:20:53 +0100
Default to HTML output.
Diffstat:
M tarot.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
DIR diff --git a/tarot.py b/tarot.py
t@@ -30,7 +30,7 @@ def draw_random_card(deck):
return deck[randint(0, len(deck)-1)]
-def main(out='text'):
+def main(out='html'):
reader = readers[randint(0, len(readers)-1)]
drawn = []
index = 0
t@@ -85,7 +85,7 @@ def main(out='text'):
if __name__ == '__main__':
- if len(argv) > 1 and argv[1] == '--html':
- main(out='html')
+ if len(argv) > 1 and argv[1] == '--text':
+ main(out='text')
else:
- main()
+ main(out='html')