Skip to content

Commit

Permalink
Extend debug messages with action 1
Browse files Browse the repository at this point in the history
  • Loading branch information
hakavlad committed Apr 8, 2024
1 parent 1343c89 commit aa07999
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tird/tird.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from hmac import compare_digest
from os import fsync, path, urandom, walk
from signal import SIGINT, signal
from sys import argv, exit, platform
from sys import argv, executable, exit, platform, version
from time import monotonic
from typing import Any, NoReturn, Optional

Expand Down Expand Up @@ -2004,6 +2004,9 @@ def main() -> NoReturn:
elif action == 1:
print(INFO)

if DEBUG:
print(DEBUG_INFO)

elif action in (2, 3, 6, 7):
ok = cryptoembed(action)

Expand Down Expand Up @@ -2070,6 +2073,9 @@ def main() -> NoReturn:
and hiding encrypted data.
Homepage: https://github.com/hakavlad/tird{RES}"""

DEBUG_INFO: str = f"""{ITA}D: Python version {version} on {platform} platform
D: executable: {executable}{RES}"""

MENU: str = f"""
{BOL}MENU
———————————————————————————————————————————
Expand Down

0 comments on commit aa07999

Please sign in to comment.