This might be slightly clearer if one level of looping was replaced with an `any(arg.startswith(...`