Skip to content

Commit

Permalink
Specify type with the param definition
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed Dec 2, 2021
1 parent ee68b4f commit e782c84
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 181 deletions.
9 changes: 3 additions & 6 deletions ansible_runner/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,9 @@ def add_args_to_parser(parser, args):
"""
Traverse a tuple of argments to add to a parser
:param parser: Instance of a parser, subparser, or argument group
:type sys_args: argparse.ArgumentParser
:param argparse.ArgumentParser parser: Instance of a parser, subparser, or argument group
:param args: Tuple of tuples, format ((arg1, arg2), {'kwarg1':'val1'},)
:type sys_args: tuple
:param tuple args: Tuple of tuples, format ((arg1, arg2), {'kwarg1':'val1'},)
:returns: None
"""
Expand All @@ -566,8 +564,7 @@ def main(sys_args=None):
When the ```ansible-runner``` command is executed, this function
is the main entry point that is called and executed.
:param sys_args: List of arguments to be parsed by the parser
:type sys_args: list
:param list sys_args: List of arguments to be parsed by the parser
:returns: an instance of SystemExit
:rtype: SystemExit
Expand Down
Loading

0 comments on commit e782c84

Please sign in to comment.