Skip to content

Commit

Permalink
Add documentation comment to help text of main function
Browse files Browse the repository at this point in the history
  • Loading branch information
linuskmr committed Sep 26, 2022
1 parent d5ae797 commit 3354e61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clipyarser/clipyarser.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def create_main_parser(self):
"""Creates the main ArgumentParser and includes the arguments of self._main_function."""
parser = ArgumentParser(prog=self.name, description=self.description)
if self._main_function:
parser.description = self._main_function.__doc__
Clipyarser.add_args(parser=parser, function=self._main_function)
return parser

Expand Down

0 comments on commit 3354e61

Please sign in to comment.