File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ### 3.0.0-alpha002
1+ ### 3.0.0-alpha003
22* Add subcommand support.
33* Add support for list and option parameters.
44* Add support for grouped switches.
Original file line number Diff line number Diff line change @@ -154,6 +154,13 @@ type ArgumentParser<'Template when 'Template :> IArgParserTemplate> private (arg
154154 let tag = argInfo.TagReader.Value ( value :> obj)
155155 argInfo.Cases.[ tag]. UnionCaseInfo
156156
157+ /// <summary >
158+ /// Gets the F# union tag representation for given union case constructor
159+ /// </summary >
160+ /// <param name =" ctorExpr " >Quoted union case constructor.</param >
161+ member __.GetTag ( ctorExpr : Expr < 'Fields -> 'Template >) : UnionCaseInfo =
162+ expr2Uci ctorExpr
163+
157164 /// <summary >
158165 /// Prints command line syntax. Useful for generating documentation.
159166 /// </summary >
You can’t perform that action at this time.
0 commit comments