Fix #117 to allow for no subnets via file (-s)

This should fix an issue introduced in #117 where when no subnets are
given via file (-s file) the variable is None instead of an empty list
and the concatenation with the subnets given as positional parameters
fails.
This commit is contained in:
Joao Vieira 2016-10-06 15:09:31 +01:00 committed by Brian May
parent 0ed5ef9a97
commit 15b394da86

View File

@ -270,6 +270,7 @@ parser.add_argument(
metavar="PATH", metavar="PATH",
action=Concat, action=Concat,
dest="subnets_file", dest="subnets_file",
default=[],
type=parse_subnet_file, type=parse_subnet_file,
help=""" help="""
file where the subnets are stored, instead of on the command line file where the subnets are stored, instead of on the command line