]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/lightcards.py
Clean input better, only parse first two columns
[lightcards.git] / lightcards / lightcards.py
index 3279f483d2764fcec9041d320d46e6ae1a16d372..66d123189628ce426ba3e69707a0635cb8941338 100755 (executable)
@@ -33,6 +33,10 @@ def parse_args():
 
 
 def show(args, stack, headers):
+    """
+    Manipulate deck according to passed arguments, and send it to the display
+    functions
+    """
     idx = Status()
     if args.flip:
         for x in stack:
@@ -42,7 +46,7 @@ def show(args, stack, headers):
         shuffle(stack)
     elif args.reverse:
         stack.reverse()
-    wrapper(display.get_key, stack, headers, idx)
+    wrapper(display.init_disp, stack, headers, idx)
 
 
 def main(args=sys.argv):