mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-12-22 15:24:40 +01:00
add flag to show configuration and db info
This commit is contained in:
parent
fb5944a5ed
commit
0749553d00
@ -150,6 +150,12 @@ def main():
|
||||
if arguments.reset:
|
||||
sys.exit(_reset_config(CONFIG_FILE))
|
||||
|
||||
if arguments.show_config:
|
||||
print(f"Configuation: {CONFIG_FILE}\nDatabase: {QOBUZ_DB}\n---")
|
||||
with open(CONFIG_FILE, "r") as f:
|
||||
print(f.read())
|
||||
sys.exit()
|
||||
|
||||
if arguments.purge:
|
||||
try:
|
||||
os.remove(QOBUZ_DB)
|
||||
|
@ -149,6 +149,12 @@ def qobuz_dl_args(
|
||||
action="store_true",
|
||||
help="purge/delete downloaded-IDs database",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-c",
|
||||
"--show-config",
|
||||
action="store_true",
|
||||
help="show configuration",
|
||||
)
|
||||
|
||||
subparsers = parser.add_subparsers(
|
||||
title="commands",
|
||||
|
Loading…
Reference in New Issue
Block a user