Skip to content

Commit 92e4196

Browse files
committed
proj: add version info
1 parent f6d903d commit 92e4196

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

MagiaTimeline.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@
2929
from Engines.FramewiseEngine import *
3030
from ExtraJobs import *
3131

32+
VERSION = "1.0.0"
33+
3234
def main():
33-
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
34-
parser.add_argument("--config", type=str, default="config.yml", help="config file stating parameters to run with")
35-
parser.add_argument("--schema", type=str, default="ConfigSchema.json", help="schema file specifying the format of config file")
35+
parser = argparse.ArgumentParser(
36+
description=f"MagiaTimeline {VERSION} - https://github.com/HurryPeng/MagiaTimeline",
37+
formatter_class=argparse.ArgumentDefaultsHelpFormatter
38+
)
39+
parser.add_argument("--config", type=str, default="config.yml", help="config file specifying the source and destination files and other parameters")
40+
parser.add_argument("--schema", type=str, default="ConfigSchema.json", help="schema file for config validation")
41+
parser.add_argument("--version", action="version", version=VERSION)
3642
args = parser.parse_args()
3743

3844
schema = json.load(open(args.schema, "r"))

0 commit comments

Comments
 (0)