Skip to content

Commit 4db3ab4

Browse files
committed
Fix the default value bug
1 parent 6142ca0 commit 4db3ab4

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.6.0
2+
3+
* Make it obey --platform option
4+
* Add -u as an alias for --update
5+
6+
17
# 0.5.1
28

39
* Proper options handling

app/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ programOptions :: Parser TldrOpts
3939
programOptions = (TldrOpts <$> (updateIndexCommand <|> viewPageCommand))
4040

4141
updateIndexCommand :: Parser TldrCommand
42-
updateIndexCommand = flag UpdateIndex UpdateIndex (long "update" <> short 'u')
42+
updateIndexCommand = flag' UpdateIndex (long "update" <> short 'u')
4343

4444
viewOptionsParser :: Parser ViewOptions
4545
viewOptionsParser = ViewOptions <$> platformFlag

0 commit comments

Comments
 (0)