Skip to content

Commit 5dfa3fb

Browse files
authored
Moved inputs inline in one example
1 parent 4937465 commit 5dfa3fb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ let unzip (zipFile: FileInfo, outputDirMaybe: DirectoryInfo option) =
7474
7575
[<EntryPoint>]
7676
let main argv =
77-
let zipFile = Input.Argument<FileInfo>("The file to unzip")
78-
let outputDirMaybe = Input.OptionMaybe<DirectoryInfo>(["--output"; "-o"], "The output directory")
79-
8077
rootCommand argv {
8178
description "Unzips a .zip file"
82-
inputs (zipFile, outputDirMaybe)
79+
inputs (
80+
Input.Argument<FileInfo>("The file to unzip"),
81+
Input.OptionMaybe<DirectoryInfo>(["--output"; "-o"], "The output directory")
82+
)
8383
setHandler unzip
8484
}
8585
```

0 commit comments

Comments
 (0)