mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
1.2 KiB
1.2 KiB
v1.1 (16-Mar-2020)
- Changed
IConsoleinterface (and as a result,SystemConsoleandVirtualConsole) to support writing binary data. Instead ofTextReader/TextWriterinstances, the streams are now exposed asStreamReader/StreamWriterwhich provide theBaseStreamproperty that allows raw access. Existing usages inside commands should remain the same becauseStreamReader/StreamWriterare compatible with their base classesTextReader/TextWriter, but if you were usingVirtualConsolein tests, you may have to update it to the new API. Refer to the readme for more info. - Changed argument binding behavior so that an error is produced if the user provides an argument that doesn't match with any parameter or option. This is done in order to improve user experience, as otherwise the user may make a typo without knowing that their input wasn't taken into account.
- Changed argument binding behavior so that options can be set to multiple argument values while specifying them with mixed naming. For example,
--option value1 -o value2 --option value3would result in the option being set to corresponding three values, assuming--optionand-omatch with the same option.