commandline icon indicating copy to clipboard operation
commandline copied to clipboard

CommandLineParser 1.9.71 - OptionAttribute implementation not matching demos and documentation

Open polarapfel opened this issue 8 years ago • 2 comments

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.

polarapfel avatar Jan 27 '17 18:01 polarapfel

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

nemec avatar Jan 29 '17 22:01 nemec

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

polarapfel avatar Jan 30 '17 23:01 polarapfel