We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Input.recursive
1 parent d3dbaa3 commit edd866bCopy full SHA for edd866b
src/FSharp.SystemCommandLine/Inputs.fs
@@ -102,7 +102,14 @@ module Input =
102
103
/// Marks an option as required.
104
let required (input: ActionInput<'T>) =
105
- input |> editOption (fun o -> o.Required <- true)
+ input
106
+ |> editOption (fun o -> o.Required <- true)
107
+
108
+ /// Marks an argument as required.
109
+ /// When set to true, this option will be applied to its immediate parent command or commands and recursively to their subcommands.
110
+ let recursive (input: ActionInput<'T>) =
111
112
+ |> editOption (fun o -> o.Recursive <- true)
113
114
/// Creates a named option of type `Option<'T option>` that defaults to `None`.
115
let optionMaybe<'T> (name: string) =
0 commit comments