summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2011-11-01 14:02:33 +0100
committerjvoisin2011-11-01 14:02:33 +0100
commit39cb68ce615deea85d08747965c083a08c5a571d (patch)
tree5d22d1983b9ec9d809a0abdc683ad1e64e529321
parente75af7158320c495ebe0bfeda80f3d10d837811d (diff)
s/meta/metadata
-rwxr-xr-xmat-cli8
1 files changed, 4 insertions, 4 deletions
diff --git a/mat-cli b/mat-cli
index 995e69b..fbcaa62 100755
--- a/mat-cli
+++ b/mat-cli
@@ -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
62def list_meta(class_file, filename, force): 62def 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))