diff options
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -10,6 +10,7 @@ import multiprocessing | |||
| 10 | 10 | ||
| 11 | from src import parser_factory | 11 | from src import parser_factory |
| 12 | 12 | ||
| 13 | __version__ = '0.1' | ||
| 13 | 14 | ||
| 14 | def __check_file(filename:str, mode:int = os.R_OK) -> bool: | 15 | def __check_file(filename:str, mode:int = os.R_OK) -> bool: |
| 15 | if not os.path.isfile(filename): | 16 | if not os.path.isfile(filename): |
| @@ -24,6 +25,8 @@ def __check_file(filename:str, mode:int = os.R_OK) -> bool: | |||
| 24 | def create_arg_parser(): | 25 | def create_arg_parser(): |
| 25 | parser = argparse.ArgumentParser(description='Metadata anonymisation toolkit 2') | 26 | parser = argparse.ArgumentParser(description='Metadata anonymisation toolkit 2') |
| 26 | parser.add_argument('files', nargs='*') | 27 | parser.add_argument('files', nargs='*') |
| 28 | parser.add_argument('-v', '--version', action='version', | ||
| 29 | version='MAT2 %s' % __version__) | ||
| 27 | 30 | ||
| 28 | info = parser.add_argument_group('Information') | 31 | info = parser.add_argument_group('Information') |
| 29 | info.add_argument('-c', '--check', action='store_true', | 32 | info.add_argument('-c', '--check', action='store_true', |
