We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1ab1bc commit 1a659e7Copy full SHA for 1a659e7
VSharp.ML.GameServer.Runner/Main.fs
@@ -392,15 +392,10 @@ let main args =
392
let args = parser.Parse args
393
let mode = args.GetResult <@ Mode @>
394
395
- let port =
396
- match args.TryGetResult <@ Port @> with
397
- | Some port -> port
398
- | None -> 8100
+ let port = args.GetResult(Port, defaultValue = 8100)
399
400
let outputDirectory =
401
- match args.TryGetResult <@ OutFolder @> with
402
- | Some path -> path
403
- | None -> Path.Combine(Directory.GetCurrentDirectory(), string port)
+ args.GetResult(OutFolder, defaultValue = Path.Combine(Directory.GetCurrentDirectory(), string port))
404
405
let cleanOutputDirectory () =
406
if Directory.Exists outputDirectory then
0 commit comments