7e92ff823e
The goal of breaking apart the base_parser() function is to get rid of a bunch of conditionals and parameters in the code and, instead, make code look like simple composition. When splitting, a choice had to be made as to whether this would operate by side effect (modifying a passed in parser) or side effect-free (returning a new parser everytime). Making a version that's side-effect-free appears to be fighting with the optparse API (it wants to work by creating a parser object, configuring the object, and then parsing the arguments with it) so instead, make it clear that our helper functions are modifying the passed in parser by (1) not returning the parser and (2) changing the function names to be more clear that it is operating by side-effect. Also move all of the generic optparse code, along with the argument context classes, into a new subdirectory. |
||
---|---|---|
.. | ||
role | ||
__init__.py | ||
test_attribute.py | ||
test_base.py | ||
test_become.py | ||
test_block.py | ||
test_conditional.py | ||
test_helpers.py | ||
test_included_file.py | ||
test_play.py | ||
test_play_context.py | ||
test_playbook.py | ||
test_taggable.py | ||
test_task.py |