cli option to print all music kraken paths

This commit is contained in:
Hellow 2023-04-15 19:24:23 +02:00
parent 27d23180b9
commit b1181283ca
2 changed files with 22 additions and 2 deletions

View File

@ -7,8 +7,8 @@ import gc
import musicbrainzngs
from . import objects, pages
from .utils import exception
from .utils.config import config, read, write
from .utils import exception, shared
from .utils.config import config, read, write, PATHS_SECTION
from .utils.shared import MUSIC_DIR, MODIFY_GC, NOT_A_GENRE_REGEX, get_random_message
from .utils.string_processing import fit_to_file_system
@ -59,6 +59,15 @@ def exit_message():
print("See you soon! :3")
def paths():
print(f"Temp dir:\t{shared.TEMP_DIR}\n"
f"Music dir:\t{shared.MUSIC_DIR}\n"
f"Log file:\t{shared.LOG_PATH}")
print()
print_cute_message()
print()
def settings(
name: str = None,
value: str = None,

View File

@ -46,6 +46,13 @@ if __name__ == "__main__":
action="store_true"
)
parser.add_argument(
"--paths",
"-p",
help="Prints an overview over all music-kraken paths.",
action="store_true"
)
arguments = parser.parse_args()
if arguments.verbose or arguments.test:
@ -61,6 +68,10 @@ if __name__ == "__main__":
music_kraken.settings()
exit()
if arguments.paths:
music_kraken.paths()
exit()
# getting the genre
genre: str = arguments.genre
if arguments.test: