metavar="input file",
type=str,
nargs=1)
- parser.add_argument("-v", "--version",
- action='version',
- version="lightcards 0.1.0")
+ parser.add_argument("-r", "--reverse",
+ action='store_true',
+ help="reverse card order")
parser.add_argument("-s", "--shuffle",
action='store_true',
- help="shuffle cards before starting")
+ help="shuffle card order")
+ parser.add_argument("-v", "--version",
+ action='version',
+ version="lightcards 0.2.0")
return parser.parse_args()
def show(args, stack, headers):
idx = Status()
- if args:
+ if args.shuffle:
shuffle(stack)
+ elif args.reverse:
+ stack.reverse()
wrapper(display.get_key, stack, headers, idx)
.\" Automatically generated by Pandoc 2.11.3
.\"
-.TH "lightcards" "1" "January 2021" "0.1.0" ""
+.TH "lightcards" "1" "January 2021" "0.2.0" ""
.hy
.SH NAME
.PP
\f[B]-h\f[R], \f[B]\[en]help\f[R]
Show a help message and exit
.TP
+\f[B]-r\f[R], \f[B]\[en]reverse\f[R]
+Reverse card order.
+Has no effect when shuffling as well
+.TP
\f[B]-s\f[R], \f[B]\[en]shuffle\f[R]
-Shuffle cards before starting
+Shuffle card order
.TP
\f[B]-v\f[R], \f[B]\[en]version\f[R]
Print version and exit
-% lightcards(1) 0.1.0
+% lightcards(1) 0.2.0
% Armaan Bhojwani
% January 2021
**-h**, **--help**
: Show a help message and exit
+**-r**, **--reverse**
+: Reverse card order. Has no effect when shuffling as well
+
**-s**, **--shuffle**
-: Shuffle cards before starting
+: Shuffle card order
**-v**, **--version**
: Print version and exit
setup(
name="lightcards",
- version="0.1.0",
+ version="0.2.0",
description="Markdown flashcards",
url="https://sr.ht/~armaan/lightcards",
author="Armaan Bhojwani",