Use get_parser() in deduplicate
This commit is contained in:
parent
a29d52856c
commit
9fb5b3b05f
@ -1,11 +1,10 @@
|
||||
import argparse
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
from tqdm import tqdm
|
||||
|
||||
from karaokatalog.deduplicate.find_duplicates import find_duplicates
|
||||
from karaokatalog.deduplicate.prune import prune
|
||||
from karaokatalog.get_parser import get_parser
|
||||
from karaokatalog.Library import Library
|
||||
from karaokatalog.Song import Song
|
||||
from karaokatalog.util.get_equivalence_classes import get_equivalence_classes
|
||||
@ -15,23 +14,10 @@ logging.basicConfig(
|
||||
)
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="python3 -m karaokatalog.deduplicate",
|
||||
description="Deduplicate UltraStar Deluxe song libraries",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"library_path",
|
||||
type=Path,
|
||||
help="The directory which contains the songs, the one you'd also configure UltraStar Deluxe to use",
|
||||
)
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
args = parse_args()
|
||||
args = get_parser(
|
||||
"deduplicate", "Deduplicate UltraStar Deluxe song libraries"
|
||||
).parse_args()
|
||||
logging.info("Karaokatalog Deduplication started")
|
||||
|
||||
logging.info("Loading library")
|
||||
|
Loading…
x
Reference in New Issue
Block a user