Skip to content

Commit

Permalink
docs: add missing docstrings to cli.py (intel#3387)
Browse files Browse the repository at this point in the history
* docs: add missing docstrings to cli.py

* chore: blacken cve_bin_tool/cli.py

---------

Co-authored-by: Terri Oda <[email protected]>
  • Loading branch information
bkpecho and terriko authored Oct 11, 2023
1 parent 8b2feab commit b543692
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cve_bin_tool/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b543692

Please sign in to comment.