views:

17

answers:

1

Mono Documentation

The documentation is missing here. What does it do?

+2  A: 

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.

John Feminella
If the option is a string, for example, which value gets used? The last one? Do you need to make it an array if you want to store all the values?
Matthew
That part I'm not sure about. Try it and see! Note that `Mono.GetOptions` is somewhat unmaintained, which is why you're having issues finding good docs.
John Feminella