From 034d98d9f3d1f5000dcf45e67c90d7c1d7a488fb Mon Sep 17 00:00:00 2001 From: MaggieLOL Date: Sun, 20 Aug 2023 09:58:37 +0800 Subject: [PATCH] add version --- sblang2c.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sblang2c.py b/sblang2c.py index 4f4fbf5..890aad8 100644 --- a/sblang2c.py +++ b/sblang2c.py @@ -1,4 +1,5 @@ import converter,sys,os,time,logging,secrets +VERSION="0.0.1-release" class Timer: def __init__(self) -> None: self.stt=0 @@ -33,7 +34,7 @@ def end(self): if len(args) < 2: print(f"usage: {name} [options] [filename]") exit(1) -print("Welcome to SBLang2C CLI!\n-| Reading File",end="",flush=True) +print(f"SBLang2C Compiler and converter v{VERSION}\n-| Reading File",end="",flush=True) timer.start() try: with open(filename,"r",encoding="utf-8") as f: