Skip to content

Commit 257d60f

Browse files
committed
Refactored ArgumentMaybe to be like OptionMaybe
1 parent 5caabed commit 257d60f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FSharp.SystemCommandLine/Inputs.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ type Input =
127127
| [ token ] -> MaybeParser.parseTokenValue token.Value
128128
| _ :: _ -> failwith "F# Option can only be used with a single argument."
129129
),
130-
description = (description |> Option.defaultValue null),
131-
isDefault = true
130+
description = (description |> Option.defaultValue null)
132131
)
132+
|> fun o -> o.SetDefaultValue(None); o
133133
|> HandlerInput.OfArgument
134134

135135
/// Creates an injected dependency input.

0 commit comments

Comments
 (0)