Skip to content

Commit

Permalink
docs: add missing docstrings to cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bkpecho committed Oct 4, 2023
1 parent 4f4ede0 commit 31cb7da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cve_bin_tool/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@


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 31cb7da

Please sign in to comment.