Skip to content

Commit

Permalink
Also pipe through parser in PositionalArgs true (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug123 authored Sep 13, 2024
1 parent 49ecfbf commit 693b951
Show file tree
Hide file tree
Showing 4 changed files with 563 additions and 2 deletions.
24 changes: 24 additions & 0 deletions ConsumePlugin/Args.fs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,30 @@ type FlagsIntoPositionalArgs =
GrabEverything : string list
}

[<ArgParser true>]
type FlagsIntoPositionalArgsChoice =
{
A : string
[<PositionalArgs true>]
GrabEverything : Choice<string, string> list
}

[<ArgParser true>]
type FlagsIntoPositionalArgsInt =
{
A : string
[<PositionalArgs true>]
GrabEverything : int list
}

[<ArgParser true>]
type FlagsIntoPositionalArgsIntChoice =
{
A : string
[<PositionalArgs true>]
GrabEverything : Choice<int, int> list
}

[<ArgParser true>]
type FlagsIntoPositionalArgs' =
{
Expand Down
Loading

0 comments on commit 693b951

Please sign in to comment.