diff --git a/cve_bin_tool/cli.py b/cve_bin_tool/cli.py index 6449ea5d55..3e62a242b9 100644 --- a/cve_bin_tool/cli.py +++ b/cve_bin_tool/cli.py @@ -82,7 +82,10 @@ class StringToListAction(argparse.Action): + """Convert comma-separated strings to lists.""" + def __call__(self, parser, namespace, values, option_string=None): + """Parse and convert comma-separated values to a list.""" values = list(map(lambda val: val.strip(), values.split(","))) setattr(namespace, self.dest, values)