Your change is wrong. The message was saying ``except for InputArgument::OPTIONAL``, which means it was equivalent to saying ``Can only set a default value for InputArgument::OPTIONAL mode.``.
your new message means ``Can only set a default value for InputArgument::REQUIRED mode.``, which is wrong