File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -994,7 +994,13 @@ def main() -> int:
994
994
)
995
995
parser .add_argument (
996
996
"--whitelist" ,
997
- help = "Use file as a whitelist. Whitelists can be created with --generate-whitelist" ,
997
+ action = "append" ,
998
+ metavar = "FILE" ,
999
+ default = [],
1000
+ help = (
1001
+ "Use file as a whitelist. Can be passed multiple times to combine multiple "
1002
+ "whitelists. Whitelist can be created with --generate-whitelist"
1003
+ ),
998
1004
)
999
1005
parser .add_argument ("--concise" , action = "store_true" , help = "Make output concise" )
1000
1006
parser .add_argument (
@@ -1006,7 +1012,11 @@ def main() -> int:
1006
1012
1007
1013
# Load the whitelist. This is a series of strings corresponding to Error.object_desc
1008
1014
# Values in the dict will store whether we used the whitelist entry or not.
1009
- whitelist = {entry : False for entry in get_whitelist_entries (args .whitelist )}
1015
+ whitelist = {
1016
+ entry : False
1017
+ for whitelist_file in args .whitelist
1018
+ for entry in get_whitelist_entries (whitelist_file )
1019
+ }
1010
1020
1011
1021
# If we need to generate a whitelist, we store Error.object_desc for each error here.
1012
1022
generated_whitelist = set ()
You can’t perform that action at this time.
0 commit comments