mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-12 12:05:07 +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])
|
||||
|
||||
if "--quiet" in sys.argv[1:] or "-q" in sys.argv[1:]:
|
||||
return
|
||||
if "serve" in sys.argv[1:]:
|
||||
serve_args = sys.argv[sys.argv.index("serve") + 1 :]
|
||||
if "--quiet" in serve_args or "-q" in serve_args:
|
||||
return
|
||||
|
||||
console.print(
|
||||
Padding(
|
||||
|
||||
Reference in New Issue
Block a user