mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-16 14:05:10 +00:00
fix(cli): show banner when dl -q is used
Scope the banner suppression to serve's --quiet/-q flag; the global argv check also matched dl's -q quality option and skipped the update check.
This commit is contained in:
@@ -53,8 +53,10 @@ def main(version: bool, debug: bool) -> None:
|
|||||||
|
|
||||||
traceback.install(console=console, width=80, suppress=[click])
|
traceback.install(console=console, width=80, suppress=[click])
|
||||||
|
|
||||||
if "--quiet" in sys.argv[1:] or "-q" in sys.argv[1:]:
|
if "serve" in sys.argv[1:]:
|
||||||
return
|
serve_args = sys.argv[sys.argv.index("serve") + 1 :]
|
||||||
|
if "--quiet" in serve_args or "-q" in serve_args:
|
||||||
|
return
|
||||||
|
|
||||||
console.print(
|
console.print(
|
||||||
Padding(
|
Padding(
|
||||||
|
|||||||
Reference in New Issue
Block a user