Why is Mono.GetOptions deprecated?

The Mono.GetOptions package is deprecated, but it doesn't seem to be there. The docs point to NDesk.Options , but NDesk 's own webpage claims that the options are unstable. Why are GetOptions outdated and what are you planning to replace?

+3
source share
2 answers

Mono.GetOptions is deprecated because its author has disappeared from the face of the earth and no one has volunteered for future service. This is not true.

NDesk.Options / Mono.Options are "unstable" in the sense that the API is essentially unstable - I reserve the right to change the public API in an incompatible way if I consider it appropriate. (I hope I don’t need this, but I leave it right.) However, I am still there, so it is supported (or can be supported).

This is why Mono.Options is distributed as a source - if the API changes, it does not matter, since you have a copy of the source associated with your program. (Also, why NDesk.Options.dll is not signed - therefore, it will not be placed in the GAC, since assemblies in the GAC have a strong assumption that they will not change the API in an incompatible way.)

+12
source

NDesk.Options - , Mono.Options, Mono 2.2 . . .cs, , .

, Mono.GetOptions , , ; , , Options .

+9

Source: https://habr.com/ru/post/1727171/


All Articles