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 following main: static int Main(Command commandType, string fromModel)
Command is an enum: enum Command { CheckSource, CanMap }
help shows correctly: --command-type <CanMap|CheckSource>
fromModel is a string, but this string should be limited to a set of values. These values are determined at runtime, I've implemented a plugin structure and if plugins abc und def exist, only strings abc and def are allowed. Is it somehow possible to dynamically create the correct help with --from-model<abc|def> with dragonfruit?
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
-
Hi,
I have following main:
static int Main(Command commandType, string fromModel)
Command is an enum:
enum Command { CheckSource, CanMap }
help shows correctly: --command-type <CanMap|CheckSource>
fromModel is a string, but this string should be limited to a set of values. These values are determined at runtime, I've implemented a plugin structure and if plugins abc und def exist, only strings abc and def are allowed. Is it somehow possible to dynamically create the correct help with --from-model<abc|def> with dragonfruit?
Beta Was this translation helpful? Give feedback.
All reactions