cli option to print all music kraken paths
This commit is contained in:
parent
27d23180b9
commit
b1181283ca
@ -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,
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user