-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser.py
15 lines (12 loc) · 984 Bytes
/
parser.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import argparse
parser = argparse.ArgumentParser(prog="VTTool", description="Enter urls, separated with comma no space, to check their safety analysis in virustotal.com. \n"
"The program will return analysis results.\n"
"-s or --scan | optional | will force new analysis scan."
"-a or --apikey | should be followed by your api key."
"-m or --maxage | oprional | allows you to determine maximum valid age for analysis, in days (enter integer). Default 180",
epilog="end of help")
parser.add_argument("urls")
parser.add_argument("-s", "--scan", action="store_true")
parser.add_argument("-a", "--apikey", default=None)
parser.add_argument("-m", "--maxage", default=180, type=int)
args = parser.parse_args()