File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (C) 2021 Intel Corporation
2
2
# SPDX-License-Identifier: GPL-3.0-or-later
3
3
4
+ import logging
4
5
import os
5
6
import sys
7
+ from typing import List , Optional
6
8
7
9
from cve_bin_tool import cli
8
10
from cve_bin_tool .error_handler import ErrorHandler , InsufficientArgs , excepthook
11
13
sys .excepthook = excepthook
12
14
13
15
14
- def main (argv = None ):
15
- logger = LOGGER .getChild ("CSV2CVE" )
16
- argv = argv or sys .argv
16
+ def main (argv : Optional [ List [ str ]] = None ):
17
+ logger : logging . Logger = LOGGER .getChild ("CSV2CVE" )
18
+ argv : List [ str ] = argv or sys .argv
17
19
if len (argv ) < 2 :
18
20
with ErrorHandler (logger = logger ):
19
21
raise InsufficientArgs ("csv file required" )
20
22
21
- flag = False
23
+ flag : bool = False
22
24
for idx , arg in enumerate (argv ):
23
25
if arg .endswith (".csv" ):
24
26
argv [idx ] = f"-i={ arg } "
You can’t perform that action at this time.
0 commit comments