Fixed issue #28

This commit is contained in:
DraftKinner 2025-03-22 11:13:45 -04:00
parent 85c1b9c1e4
commit c5032d8ec0
2 changed files with 5 additions and 4 deletions

View file

@ -252,6 +252,9 @@ class App:
return collections
def scan(self, collections: list[Collection], match: bool):
if self.__config.replace_existing:
return
if match:
for collection in collections:
collection.get_match()

View file

@ -1,4 +1,4 @@
from argparse import Action, ArgumentError
from argparse import Action
from enum import Enum, IntEnum
from pathlib import Path
from re import IGNORECASE, sub
@ -146,7 +146,7 @@ class OptionalOrFalse(Action):
self,
option_strings,
dest,
nargs="?",
nargs=0,
default=None,
type=None,
choices=None,
@ -175,8 +175,6 @@ class OptionalOrFalse(Action):
)
def __call__(self, parser, namespace, values, option_string=None):
if values is not None:
raise ArgumentError(self, "expected 0 arguments")
setattr(
namespace,
self.dest,