cli option to print all music kraken paths
This commit is contained in:
parent
b1181283ca
commit
31483465cd
@ -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.")
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user