Skip to content

Commit

Permalink
Fix the default value bug
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Oct 19, 2019
1 parent 6142ca0 commit 4db3ab4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.6.0

* Make it obey --platform option
* Add -u as an alias for --update


# 0.5.1

* Proper options handling
Expand Down
2 changes: 1 addition & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ programOptions :: Parser TldrOpts
programOptions = (TldrOpts <$> (updateIndexCommand <|> viewPageCommand))

updateIndexCommand :: Parser TldrCommand
updateIndexCommand = flag UpdateIndex UpdateIndex (long "update" <> short 'u')
updateIndexCommand = flag' UpdateIndex (long "update" <> short 'u')

viewOptionsParser :: Parser ViewOptions
viewOptionsParser = ViewOptions <$> platformFlag
Expand Down

0 comments on commit 4db3ab4

Please sign in to comment.