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
|
return True
|
||||||
|
|
||||||
if name is not None and value is not None:
|
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:
|
while True:
|
||||||
print_settings()
|
print_settings()
|
||||||
@ -111,6 +116,9 @@ def settings(
|
|||||||
print()
|
print()
|
||||||
if input_.isdigit() and int(input_) < len(config):
|
if input_.isdigit() and int(input_) < len(config):
|
||||||
if modify_setting_by_index(int(input_)):
|
if modify_setting_by_index(int(input_)):
|
||||||
|
print()
|
||||||
|
print_cute_message()
|
||||||
|
print()
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
print("Please input a valid ID.")
|
print("Please input a valid ID.")
|
||||||
|
@ -46,6 +46,13 @@ if __name__ == "__main__":
|
|||||||
action="store_true"
|
action="store_true"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
'-s',
|
||||||
|
'--setting',
|
||||||
|
help="Modifies a setting directly.",
|
||||||
|
nargs=2
|
||||||
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--paths",
|
"--paths",
|
||||||
"-p",
|
"-p",
|
||||||
@ -64,6 +71,10 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
music_kraken.read()
|
music_kraken.read()
|
||||||
|
|
||||||
|
if arguments.setting is not None:
|
||||||
|
music_kraken.settings(*arguments.setting)
|
||||||
|
exit()
|
||||||
|
|
||||||
if arguments.settings:
|
if arguments.settings:
|
||||||
music_kraken.settings()
|
music_kraken.settings()
|
||||||
exit()
|
exit()
|
||||||
|
Loading…
Reference in New Issue
Block a user