Skip to content

Commit

Permalink
Merge pull request #2 from freezeboy/allowFalseDefault
Browse files Browse the repository at this point in the history
Update ArgRead instance to allow "f" symbol for Bools
  • Loading branch information
kakkun61 committed Aug 5, 2020
2 parents 4bb606f + 97d04d4 commit ae426b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
@@ -1,3 +1,7 @@
# HEAD

- Allow False as a default value for Bool arguments

# 0.3.0

- Simplify API
Expand Down
1 change: 1 addition & 0 deletions src/Options/Declarative.hs
Expand Up @@ -112,6 +112,7 @@ instance ArgRead String where

instance ArgRead Bool where
argRead Nothing = Just False
argRead (Just "f") = Just False
argRead (Just "t") = Just True
argRead _ = Nothing

Expand Down

0 comments on commit ae426b2

Please sign in to comment.