diff options
| -rwxr-xr-x | mat2 | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -118,7 +118,7 @@ def clean_meta(filename: str, is_lightweight: bool, policy: UnknownMemberPolicy) | |||
| 118 | 118 | ||
| 119 | 119 | ||
| 120 | 120 | ||
| 121 | def show_parsers() -> bool: | 121 | def show_parsers(): |
| 122 | print('[+] Supported formats:') | 122 | print('[+] Supported formats:') |
| 123 | formats = set() # Set[str] | 123 | formats = set() # Set[str] |
| 124 | for parser in parser_factory._get_parsers(): # type: ignore | 124 | for parser in parser_factory._get_parsers(): # type: ignore |
| @@ -133,7 +133,6 @@ def show_parsers() -> bool: | |||
| 133 | continue | 133 | continue |
| 134 | formats.add(' - %s (%s)' % (mtype, ', '.join(extensions))) | 134 | formats.add(' - %s (%s)' % (mtype, ', '.join(extensions))) |
| 135 | print('\n'.join(sorted(formats))) | 135 | print('\n'.join(sorted(formats))) |
| 136 | return True | ||
| 137 | 136 | ||
| 138 | 137 | ||
| 139 | def __get_files_recursively(files: List[str]) -> Generator[str, None, None]: | 138 | def __get_files_recursively(files: List[str]) -> Generator[str, None, None]: |
| @@ -156,7 +155,8 @@ def main() -> int: | |||
| 156 | 155 | ||
| 157 | if not args.files: | 156 | if not args.files: |
| 158 | if args.list: | 157 | if args.list: |
| 159 | return show_parsers() | 158 | show_parsers() |
| 159 | return 0 | ||
| 160 | elif args.check_dependencies: | 160 | elif args.check_dependencies: |
| 161 | print("Dependencies required for MAT2 %s:" % __version__) | 161 | print("Dependencies required for MAT2 %s:" % __version__) |
| 162 | for key, value in sorted(check_dependencies().items()): | 162 | for key, value in sorted(check_dependencies().items()): |
