diff options
| -rwxr-xr-x | mat-cli | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -34,7 +34,7 @@ The default behaviour is to clean files given in argument') | |||
| 34 | info.add_option('--check', '-c', action='store_true', default=False, | 34 | info.add_option('--check', '-c', action='store_true', default=False, |
| 35 | help='Check if a file is free of harmful metadatas') | 35 | help='Check if a file is free of harmful metadatas') |
| 36 | info.add_option('--display', '-d', action='store_true', default=False, | 36 | info.add_option('--display', '-d', action='store_true', default=False, |
| 37 | help='List all the harmful meta of a file without removing them') | 37 | help='List all the harmful metadata of a file without removing them') |
| 38 | info.add_option('--list', '-l', action='store_true', default=False, | 38 | info.add_option('--list', '-l', action='store_true', default=False, |
| 39 | help='List all supported fileformat') | 39 | help='List all supported fileformat') |
| 40 | info.add_option('--version', '-v', action='callback', | 40 | info.add_option('--version', '-v', action='callback', |
| @@ -61,15 +61,15 @@ def display_version(*_): | |||
| 61 | 61 | ||
| 62 | def list_meta(class_file, filename, force): | 62 | def list_meta(class_file, filename, force): |
| 63 | ''' | 63 | ''' |
| 64 | Print all the meta of 'filename' on stdout | 64 | Print all the metadataof 'filename' on stdout |
| 65 | ''' | 65 | ''' |
| 66 | print('[+] File %s :' % filename) | 66 | print('[+] File %s :' % filename) |
| 67 | if force is False and class_file.is_clean(): | 67 | if force is False and class_file.is_clean(): |
| 68 | print('No harmful meta found') | 68 | print('No harmful metadata found') |
| 69 | else: | 69 | else: |
| 70 | meta = class_file.get_meta() | 70 | meta = class_file.get_meta() |
| 71 | if meta is None: | 71 | if meta is None: |
| 72 | print('No harmful meta found') | 72 | print('No harmful metadata found') |
| 73 | else: | 73 | else: |
| 74 | for key, value in class_file.get_meta().iteritems(): | 74 | for key, value in class_file.get_meta().iteritems(): |
| 75 | print(key + ' : ' + str(value)) | 75 | print(key + ' : ' + str(value)) |
