Allow positional args to be Choice<'a, 'a> to indicate whether they came before any positional marker (#238)

This commit is contained in:
Patrick Stevens
2024-09-04 20:09:40 +01:00
committed by GitHub
parent 047b2eda99
commit 3a55ba1242
8 changed files with 374 additions and 133 deletions

View File

@@ -128,3 +128,10 @@ type ParentRecordSelfPos =
[<PositionalArgs>]
AndAnother : bool list
}
[<ArgParser true>]
type ChoicePositionals =
{
[<PositionalArgs>]
Args : Choice<string, string> list
}