From 6a58317e797800f74635e4ff25241b9c8d237465 Mon Sep 17 00:00:00 2001 From: Miguel Quero Date: Mon, 3 Oct 2022 16:50:05 +0200 Subject: [PATCH] Add program version option --- mftmactime.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mftmactime.py b/mftmactime.py index ec70678..bee301d 100755 --- a/mftmactime.py +++ b/mftmactime.py @@ -42,6 +42,7 @@ UTC=pytz.UTC BUFF_SIZE = 1024 * 1024 OS=platform.system() +VERSION="0.6" ########################### IMG SUPPORT ################################ @@ -493,6 +494,10 @@ def get_args(): argparser = argparse.ArgumentParser( description='Utility to create a mactime format filesystem timeline from MFT') + argparser.add_argument('-V', '--version', + action='version', + version='%(prog)s {}'.format(VERSION)) + argparser.add_argument('-f', '--file', required=True, action='store',