def parse_args():
+ """Parse command line arguments"""
parser = argparse.ArgumentParser(
description="Terminal flashcards from Markdown"
)
# Check for caches
idx = Status()
- cache = progress.dive(get_orig())
+ cache = progress.dive(get_orig()[1])
if cache:
(stack) = cache
if args.shuffle:
shuffle(stack)
if args.alphabetize:
- stack.sort()
+ stack.sort(key=lambda x: x.front)
if args.reverse:
stack.reverse()
if args.flip: