namespace Playground open System open WoofWare.Myriad.Plugins [] type SubMode1 = { Info1 : int Info2 : string Rest : string list } [] type SubMode2 = { Info1 : int Info2 : string Rest : int list } [] type Mode1 = { Things : SubMode1 Whatnot : int } [] type Mode2 = { Things : SubMode2 Whatnot : DateTime } [] type Modes = | Mode1 of Mode1 | Mode2 of Mode2 [] type Args = { WhatToDo : Modes [] OtherArgs : string list }