cli option to print all music kraken paths

This commit is contained in:
Hellow 2023-04-15 19:39:25 +02:00
parent b1181283ca
commit 31483465cd
2 changed files with 20 additions and 1 deletions

View File

@ -102,7 +102,12 @@ def settings(
return True
if name is not None and value is not None:
modify_setting(name, value, invalid_ok=False)
modify_setting(name, value, invalid_ok=True)
print()
print_cute_message()
print()
return
while True:
print_settings()
@ -111,6 +116,9 @@ def settings(
print()
if input_.isdigit() and int(input_) < len(config):
if modify_setting_by_index(int(input_)):
print()
print_cute_message()
print()
return
else:
print("Please input a valid ID.")

View File

@ -46,6 +46,13 @@ if __name__ == "__main__":
action="store_true"
)
parser.add_argument(
'-s',
'--setting',
help="Modifies a setting directly.",
nargs=2
)
parser.add_argument(
"--paths",
"-p",
@ -64,6 +71,10 @@ if __name__ == "__main__":
music_kraken.read()
if arguments.setting is not None:
music_kraken.settings(*arguments.setting)
exit()
if arguments.settings:
music_kraken.settings()
exit()