Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions colcon_mixin/mixin/mixin_argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ def parse_known_args(self, *args, **kwargs):
return (known_args, remaining_args)

def parse_args(self, *args, **kwargs):
"""Add mixin argument for each parser."""
"""
Add mixin argument for each parser and apply selected mixins.
When multiple mixins are applied, they are processed in the order specified by
the user. In future versions supporting mixin referencing, referenced mixins will
be applied before the mixin that references them.
"""
# mapping of all "leaf" verbs to parsers
def collect_parsers_by_verb(root, parsers, parent_verbs=()):
found_any = False
Expand Down Expand Up @@ -318,4 +323,4 @@ def _argparse_existing_file(path):
if not os.path.isfile(path):
raise argparse.ArgumentTypeError(
"Path '{path}' is not a file".format_map(locals()))
return path
return path
Loading