-def show(stack, headers):
- wrapper(display.get_key, stack, headers)
+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:
+ x[0], x[1] = x[1], x[0]
+ headers[0], headers[1] = headers[1], headers[0]
+ if args.shuffle:
+ shuffle(stack)
+ elif args.reverse:
+ stack.reverse()