Allow Case Insensitive OptionSet (#21192)
commitd91faa0c1623779e53c8094851c50411bea2d79f
authormcdon-ron <2132322+mcdon-ron@users.noreply.github.com>
Thu, 19 Aug 2021 17:40:15 +0000 (19 12:40 -0500)
committerGitHub <noreply@github.com>
Thu, 19 Aug 2021 17:40:15 +0000 (19 19:40 +0200)
tree2ce6901bd5bc90d8842ece3d5eb30f14fd1fca8e
parent718bef874e3ed0d2efd11bc787cde5d4d11a9df9
Allow Case Insensitive OptionSet (#21192)

* Added constructors to OptionSet to allow for Case Insensitive command line arguments. Will be Case Sensitive by default, and can pass StringComparer.OrdinalIgnoreCase to use Case Insensitive which is passed to the base KeyedCollection<string, Option>. Added related unit tests in CaseSensitivityTests.cs.

* Fix code style

* Update Mono.Options xml docs

* Bump api-snapshot submodule

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
external/api-snapshot
mcs/class/Mono.Options/Documentation/en/Mono.Options/ArgumentSource.xml
mcs/class/Mono.Options/Documentation/en/Mono.Options/CommandSet.xml
mcs/class/Mono.Options/Documentation/en/Mono.Options/OptionException.xml
mcs/class/Mono.Options/Documentation/en/Mono.Options/OptionSet.xml
mcs/class/Mono.Options/Documentation/en/Mono.Options/OptionValueCollection.xml
mcs/class/Mono.Options/Documentation/en/Mono.Options/OptionValueType.xml
mcs/class/Mono.Options/Documentation/en/Mono.Options/ResponseFileSource.xml
mcs/class/Mono.Options/Mono.Options/Options.cs
mcs/class/Mono.Options/Mono.Options_test.dll.sources
mcs/class/Mono.Options/Test/Mono.Options/CaseSensitivityTests.cs [new file with mode: 0644]