Improve resilience of main.py
This commit is contained in:
parent
1ee936420c
commit
0bbafc4cc5
3
main.py
3
main.py
@ -20,6 +20,9 @@ def create_arg_parser():
|
|||||||
|
|
||||||
def show_meta(file_name:str):
|
def show_meta(file_name:str):
|
||||||
p = parser_factory.get_parser(file_name)
|
p = parser_factory.get_parser(file_name)
|
||||||
|
if p is None:
|
||||||
|
print("[-] %s's format (%s) is not supported" % (file_name, p))
|
||||||
|
return
|
||||||
for k,v in p.get_meta().items():
|
for k,v in p.get_meta().items():
|
||||||
print("%s: %s" % (k, v))
|
print("%s: %s" % (k, v))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user