Last active
January 27, 2016 04:38
-
-
Save notpeelz/af29f9d3fae7d1ad363f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| open System | |
| open System.Linq | |
| open ArgumentParser | |
| open ArgumentParser.Reflection | |
| open ArgumentParser.Reflection.POSIX | |
| type private GlobalContext() = | |
| static member public Instance = new GlobalContext() | |
| member public this.Test = null | |
| interface IParserContext with | |
| member this.Options = new ParserOptions(ParameterTokenStyle.POSIX) | |
| member this.Init(verbs) = | |
| for e in verbs do | |
| printfn "%s" e | |
| member this.HandleParameters(parameters) = () | |
| member this.HandleValues(values) = () | |
| [<EntryPoint>] | |
| let main argv = | |
| let context = GlobalContext.Instance | |
| context.Parse("Test"); | |
| Console.ReadKey(false) |> ignore | |
| 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment