set default for --type to an empty list

The action is set to append but the default is still None so if --type
is not provided on the command line the option's value isn't iterable
and trying to use it causes an exception.

Change-Id: I17e027088db305fac51a557e7005293d904cf890
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann
2018-02-02 15:06:58 -05:00
parent fc0da93d26
commit 5166e80222

View File

@@ -81,6 +81,7 @@ def main():
)
parser.add_argument(
'--type',
default=[],
action='append',
choices=list(sorted(validate._VALID_TYPES)),
help='deliverable type, such as "library" or "service"',