File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/FSharp.SystemCommandLine Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ The new `Input` module contains functions for the underlying System.CommandLine
7272* ` optionMaybe ` creates a named ` Option<'T option> ` that defaults to ` None ` .
7373
7474### Input Properties
75+ * ` acceptLegalFileNamesOnly ` sets the option or argument to accept only values representing legal file names.
7576* ` acceptLegalFilePathsOnly ` sets the option or argument to accept only values representing legal file paths.
7677* ` alias ` adds an ` Alias ` to an ` Option `
7778* ` aliases ` adds one or more aliases to an ` Option `
Original file line number Diff line number Diff line change @@ -68,6 +68,12 @@ module Input =
6868 | _ -> ()
6969 input
7070
71+ /// Configures the option or argument to accept only values representing legal file names.
72+ let acceptLegalFileNamesOnly ( input : ActionInput < 'T >) =
73+ input
74+ |> editOption ( fun o -> o.AcceptLegalFileNamesOnly() |> ignore)
75+ |> editArgument ( fun a -> a.AcceptLegalFileNamesOnly() |> ignore)
76+
7177 /// Configures the option or argument to accept only values representing legal file paths.
7278 let acceptLegalFilePathsOnly ( input : ActionInput < 'T >) =
7379 input
You can’t perform that action at this time.
0 commit comments