metavar="input file",
type=str,
nargs=1)
+ parser.add_argument("-a", "--alphabetize",
+ action='store_true',
+ help="alphabetize card order")
parser.add_argument("-f", "--flip",
action='store_true',
help="show second column first")
idx = Status()
# Manipulate deck
- 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)
+ if args.alphabetize:
+ stack.sort()
if args.reverse:
stack.reverse()
+ if args.flip:
+ for x in stack:
+ x[0], x[1] = x[1], x[0]
+ headers[0], headers[1] = headers[1], headers[0]
# Send to display
win = Display(stack, headers, idx)
\f[B]-h\f[R], \f[B]\[en]help\f[R]
Show a help message and exit
.TP
+\f[B]-a\f[R], \f[B]\[en]alphabetize\f[R]
+Alphabetize card order
+.TP
\f[B]-f\f[R], \f[B]\[en]flip\f[R]
Show second column first
.TP
**-h**, **--help**
: Show a help message and exit
+**-a**, **--alphabetize**
+: Alphabetize card order
+
**-f**, **--flip**
: Show second column first