You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application that requires the user to specify some extra data for each option of a certain type, and I'd like them to be able to supply multiple instances of that option.. Essentially, I want to read either 3 or 4 arguments from the CLI per instance of the option.
And the option is of type Option<IEnumerable<ImageFile>>.
This does not work. I misunderstood the documentation as being able to parse types with constructors of primitive types and for the IEnumerable type to just mean that multiple options with that name can be used in a single command and combined into an enumerable type. Was I mistaken?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an application that requires the user to specify some extra data for each option of a certain type, and I'd like them to be able to supply multiple instances of that option.. Essentially, I want to read either 3 or 4 arguments from the CLI per instance of the option.
The type I want to bind is defined as follows:
And the option is of type
Option<IEnumerable<ImageFile>>
.This does not work. I misunderstood the documentation as being able to parse types with constructors of primitive types and for the IEnumerable type to just mean that multiple options with that name can be used in a single command and combined into an enumerable type. Was I mistaken?
Is there any way to do this?
Beta Was this translation helpful? Give feedback.
All reactions