Skip to content

Commit

Permalink
Merge pull request #2525 from rmunn/feature/docopt-parse-seq-overload
Browse files Browse the repository at this point in the history
Add seq-based overload for Docopt.Parse
  • Loading branch information
matthid authored Jun 27, 2020
2 parents 8dc10ab + a4151f0 commit 9b36420
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ type Docopt(doc', ?soptChars':string) =
|> addKey opt.DefaultValue opt.FullLong
|> addKey opt.DefaultValue opt.FullShort
) map) result
member this.Parse(argv':#seq<string>) = this.Parse(argv' |> Seq.toArray)

member __.Usage = String.Join("\n", uStrs)
member __.UsageParser = pusage

0 comments on commit 9b36420

Please sign in to comment.