fix(main): update copyright year dynamically in version display

This commit is contained in:
Andy
2026-02-11 16:01:33 -07:00
parent 3ee554401a
commit 132d3549f9

View File

@@ -1,5 +1,6 @@
import atexit import atexit
import logging import logging
from datetime import datetime
import click import click
import urllib3 import urllib3
@@ -58,7 +59,7 @@ def main(version: bool, debug: bool) -> None:
r" ▀▀▀ ▀▀ █▪ ▀▀▀▀ ▀▀▀ · ▀ ▀ ·▀▀▀ ·▀ ▀.▀▀▀ ▀▀▀ ", r" ▀▀▀ ▀▀ █▪ ▀▀▀▀ ▀▀▀ · ▀ ▀ ·▀▀▀ ·▀ ▀.▀▀▀ ▀▀▀ ",
style="ascii.art", style="ascii.art",
), ),
f"v [repr.number]{__version__}[/] - © 2025 - github.com/unshackle-dl/unshackle", f"v [repr.number]{__version__}[/] - © 2025-{datetime.now().year} - github.com/unshackle-dl/unshackle",
), ),
(1, 11, 1, 10), (1, 11, 1, 10),
expand=True, expand=True,