From 105a7c55741d2777306af63ad38dfc7f79a3b370 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sun, 31 Jan 2021 22:28:28 -0500 Subject: [PATCH] Change shuffle/reverse logic --- lightcards/lightcards.py | 2 +- man/lightcards.1 | 3 +-- man/lightcards.1.md | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lightcards/lightcards.py b/lightcards/lightcards.py index ea5355e..a996ccc 100644 --- a/lightcards/lightcards.py +++ b/lightcards/lightcards.py @@ -70,7 +70,7 @@ def show(args, stack, headers): headers[0], headers[1] = headers[1], headers[0] if args.shuffle: shuffle(stack) - elif args.reverse: + if args.reverse: stack.reverse() win = Display(stack, headers, idx) diff --git a/man/lightcards.1 b/man/lightcards.1 index a83884c..50ad3b0 100644 --- a/man/lightcards.1 +++ b/man/lightcards.1 @@ -32,8 +32,7 @@ Purge cache for chosen set Purge all caches .TP \f[B]-r\f[R], \f[B]\[en]reverse\f[R] -Reverse card order. -Has no effect when shuffling as well +Reverse card order .TP \f[B]-s\f[R], \f[B]\[en]shuffle\f[R] Shuffle card order diff --git a/man/lightcards.1.md b/man/lightcards.1.md index b4db85f..275733d 100644 --- a/man/lightcards.1.md +++ b/man/lightcards.1.md @@ -29,7 +29,7 @@ lightcards [[options]] [input file] : Purge all caches **-r**, **--reverse** -: Reverse card order. Has no effect when shuffling as well +: Reverse card order **-s**, **--shuffle** : Shuffle card order -- 2.39.2