diff --git a/colcon_core/command.py b/colcon_core/command.py index 413ae563..228d3b36 100644 --- a/colcon_core/command.py +++ b/colcon_core/command.py @@ -232,7 +232,8 @@ def _parse_optional(self, arg_string): # backported to Python 3.12), it returns a 4-tuple. Check for # either here. if result in ( - (None, arg_string, None), (None, arg_string, None, None) + (None, arg_string, None), + (None, arg_string, None, None), ): # in the case there the arg is classified as an unknown 'O' # override that and classify it as an 'A'