From dd93d0feb68905c4a7d40a13e2c1345443733b4a Mon Sep 17 00:00:00 2001 From: Chris Combs Date: Sun, 14 Aug 2022 17:41:51 -0400 Subject: [PATCH] #577 - Fix GUI: "Same file extension" error --- docs/rmlint.1.rst | 2 +- gui/shredder/runner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rmlint.1.rst b/docs/rmlint.1.rst index 296fe0a77..10b7af586 100644 --- a/docs/rmlint.1.rst +++ b/docs/rmlint.1.rst @@ -365,7 +365,7 @@ Traversal Options Only consider those files as dupes that do not share the same basename. See also ``man 1 basename``. The comparison of the basenames is case-insensitive. -:``-e --match-with-extension`` / ``-E --no-match-with-extension`` (**default**): +:``-e --match-extension`` / ``-E --no-match-extension`` (**default**): Only consider those files as dupes that have the same file extension. For example two photos would only match if they are a ``.png``. The extension is diff --git a/gui/shredder/runner.py b/gui/shredder/runner.py index aeb9f8a5e..3f25404dd 100644 --- a/gui/shredder/runner.py +++ b/gui/shredder/runner.py @@ -57,7 +57,7 @@ class MatchType(Enum): MAPPING = { NONE: [], BASENAME: ['--match-basename'], - EXTENSION: ['--match-with-extension'], + EXTENSION: ['--match-extension'], WITHOUT_EXTENSION: ['--match-without-extension'] }