Skip to content

Instantly share code, notes, and snippets.

@notpeelz
Last active January 27, 2016 04:38
Show Gist options
  • Select an option

  • Save notpeelz/af29f9d3fae7d1ad363f to your computer and use it in GitHub Desktop.

Select an option

Save notpeelz/af29f9d3fae7d1ad363f to your computer and use it in GitHub Desktop.
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