parser=argparse.ArgumentParser(description='Send malware sample to MISP.')
parser.add_argument("-u","--upload",type=str,required=True,help="File or directory of files to upload.")
parser.add_argument("-d","--distrib",type=int,help="The distribution setting used for the attributes and for the newly created event, if relevant. [0-3].")
parser.add_argument("-c","--comment",type=str,help="Comment for the uploaded file(s).")
parser.add_argument('-m','--is-malware',action='store_true',help='The file(s) to upload are malwares')
parser.add_argument('--expand',action='store_true',help='(Only if the file is a malware) Run lief expansion (creates objects)')
parser.add_argument("-e","--event",type=int,default=None,help="Not supplying an event ID will cause MISP to create a single new event for all of the POSTed malware samples.")