开发者

What does the MaxOccurs property of Mono.GetOptions.OptionAttribute do?

开发者 https://www.devze.com 2022-12-15 03:37 出处:网络
Mono Documentation The documentation i开发者_如何学Cs missing here. What does it do?It\'s the maximum number of times you can specify a particular option. For example, if MaxOptions is 2 for a partic

Mono Documentation

The documentation i开发者_如何学Cs missing here. What does it do?


It's the maximum number of times you can specify a particular option. For example, if MaxOptions is 2 for a particular option -c, something like foo -c apple -c banana is fine, but foo -c apple -c banana -c coconut is an error. If you leave MaxOccurs at 0, there is no limit to the number of times you can include an option.

0

精彩评论

暂无评论...
验证码 换一张
取 消