From b54369215ae95a30e6747469a3ae0c19b03a6371 Mon Sep 17 00:00:00 2001 From: Bryan King Pecho Date: Thu, 12 Oct 2023 03:54:28 +0800 Subject: [PATCH] docs: add missing docstrings to cli.py (#3387) * docs: add missing docstrings to cli.py * chore: blacken cve_bin_tool/cli.py --------- Co-authored-by: Terri Oda --- cve_bin_tool/cli.py | 3 +++ 1 file changed, 3 insertions(+) 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)