Skip to content

Commit 6262b7c

Browse files
committed
Small code style changes to F# script demo
1 parent 76009c4 commit 6262b7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

demo/fsharp-demo.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ open CommandLine.Text
55

66
type options = {
77
[<Option(HelpText = "Input a string value here.", Default="中文")>] stringValue : string;
8-
[<Option('i', Min = 3, Max = 4, HelpText = "Input a int sequence here.")>] intSequence : seq<int>;
8+
[<Option('i', Min = 3, Max = 4, HelpText = "Input a int sequence here.")>] intSequence : int seq;
99
[<Option('x', HelpText = "Define a switch (boolean) here.")>] boolValue : bool;
1010
[<Value(0, MetaName = "longvalue", HelpText = "A long scalar here.")>] longValue : int64 option; }
1111
with
@@ -20,7 +20,7 @@ let formatLong o =
2020
| _ -> "{None}"
2121

2222
let formatInput (o : options) =
23-
sprintf "--stringvalue: %s\n-i: %A\n-x: %b\nvalue: %s\n" o.stringValue (Array.ofSeq o.intSequence) o.boolValue (formatLong o.longValue)
23+
sprintf "--stringvalue: %s\n-i: %A\n-x: %b\nvalue: %s\n" o.stringValue o.intSequence o.boolValue (formatLong o.longValue)
2424

2525
let inline (|Success|Fail|) (result : ParserResult<'a>) =
2626
match result with

0 commit comments

Comments
 (0)