From f8dbb2a02277188e677bb89ffdacb13a270df35e Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Mon, 8 Feb 2021 22:49:54 -0500 Subject: [PATCH] Remove purge-all option --- lightcards/lightcards.py | 9 --------- lightcards/progress.py | 5 ----- man/lightcards.1 | 3 --- man/lightcards.1.md | 3 --- 4 files changed, 20 deletions(-) diff --git a/lightcards/lightcards.py b/lightcards/lightcards.py index 5aec89e..2fa42f4 100644 --- a/lightcards/lightcards.py +++ b/lightcards/lightcards.py @@ -32,13 +32,6 @@ def parse_args(): action="store_true", help="don't check cached info before starting", ) - # TODO: don't require input file when using -P - parser.add_argument( - "-P", - "--purge-all", - action="store_true", - help="don't check cached info before starting", - ) parser.add_argument( "-r", "--reverse", action="store_true", help="reverse card order" ) @@ -59,8 +52,6 @@ def show(args, stack, headers): # Purge caches if asked if args.purge: progress.purge(stack) - if args.purge_all: - progress.purge_all() # Check for caches idx = Status() diff --git a/lightcards/progress.py b/lightcards/progress.py index 6fd3f3c..bf78e01 100644 --- a/lightcards/progress.py +++ b/lightcards/progress.py @@ -40,8 +40,3 @@ def purge(stra): file = f"{dired}/{name_gen(stra)}/" if os.path.exists(file): shutil.rmtree(file) - - -def purge_all(): - if os.path.exists(dired): - shutil.rmtree(dired) diff --git a/man/lightcards.1 b/man/lightcards.1 index a763c38..2758d2b 100644 --- a/man/lightcards.1 +++ b/man/lightcards.1 @@ -31,9 +31,6 @@ Show second column first \f[B]-p\f[R], \f[B]\[en]purge\f[R] Purge cache for chosen set .TP -\f[B]-P\f[R], \f[B]\[en]purge-all\f[R] -Purge all caches -.TP \f[B]-r\f[R], \f[B]\[en]reverse\f[R] Reverse card order .TP diff --git a/man/lightcards.1.md b/man/lightcards.1.md index 87a0a69..f57fd1e 100644 --- a/man/lightcards.1.md +++ b/man/lightcards.1.md @@ -28,9 +28,6 @@ lightcards [[options]] [input file] **-p**, **--purge** : Purge cache for chosen set -**-P**, **--purge-all** -: Purge all caches - **-r**, **--reverse** : Reverse card order -- 2.39.2