commandline
commandline copied to clipboard
CommandLineParser 1.9.71 - OptionAttribute implementation not matching demos and documentation
Hi there,
I'm using CommandLineParser 1.9.71 through Monodevelop 6.0.1 and Mono 4.6.2.
I am trying to get one of the demos to work (also following the documentation in the Wiki) and I noticed the implementation of OptionAttribute in my assembly is out of sync with the demo code.
For example, this interface is defined in the demo.
However, this won't work with the assembly that NuGet pulls for me as latest stable version of the package in Monodevelop as OptionAttribute does not know "Value", "SetName", "MetaName" (I checked in the Assembly Browser).
Am I pulling the wrong package or is the documentation and the demo sample not up to date?
thanks,
Tobias W.
Hi @polarapfel the code in master follows the 2.x branch, which has breaking changes from 1.x. The old code is available on a separate branch and you can check out the demos there.
https://github.com/gsscoder/commandline/tree/stable-1.9.71.2/src/demo
Edit: Never mind, I found it :)
Hi @nemec, thanks. Is there documentation on these breaking changes the design decision leading to them? Any guidance on how to best port older stuff to the new version?
Thanks,
Tobias