Skip to content

Commit

Permalink
Fsdk/Misc: make tests pass when pred.IsNone
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Aug 25, 2023
1 parent 43bd2c3 commit 35a4112
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Fsdk/Misc.fs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,14 @@ module Misc =
(acc: ArgsParsed)
: ArgsParsed =
match theArgs with
| [] -> ErrorDetectingProgram
| [] ->
if predicateToRecognizeProgram.IsSome then
ErrorDetectingProgram
else
acc
| head :: tail ->
if predicateToRecognizeProgram.IsSome && predicateToRecognizeProgram.Value head then
if predicateToRecognizeProgram.IsSome
&& predicateToRecognizeProgram.Value head then
acc
elif head.StartsWith "--" || head.StartsWith "-" then
let newAcc =
Expand Down

0 comments on commit 35a4112

Please sign in to comment.