Skip to content

Commit

Permalink
Included version in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
trag1c committed Jul 17, 2024
1 parent 439aa61 commit 14cac63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dahlia/__main__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
from __future__ import annotations

from importlib.metadata import version

from dahlia.lib import Dahlia, Depth

TEST_STRING = "&R".join(f"&{c * 2}" for c in "0123456789abcdefhijklmno")
VERSION = version("dahlia")

if __name__ == "__main__":
print(f"Dahlia v{VERSION}")
if (max_depth := Dahlia().depth) is None:
print("Disabled colors")
else:
Expand Down

0 comments on commit 14cac63

Please sign in to comment.