Skip to content

Commit

Permalink
com
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Oct 18, 2019
1 parent ea100e6 commit 824be48
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import Tldr
data TldrOpts =
TldrOpts
{ pageName :: String
, platformOption :: String
}
deriving (Show)

Expand Down Expand Up @@ -58,15 +59,19 @@ updateTldrPages = do
False -> initializeTldrPages

updateOption :: Parser (a -> a)
updateOption = infoOption "update" (long "update" <> help "Update tldr pages")
updateOption =
infoOption "update" (long "update" <> short 'u' <> help "Update tldr pages")

tldrParserInfo :: ParserInfo TldrOpts
tldrParserInfo =
info
(helper <*> versionOption <*> updateOption <*> programOptions)
(helper <*> versionOption <*> updateOption <*> programOptions <*>
platformOption)
(fullDesc <> progDesc "tldr Client program" <>
header "tldr - Simplified and community-driven man pages")
where
platformOption :: Parser (a -> a)
platformOption = undefined
versionOption :: Parser (a -> a)
versionOption =
infoOption
Expand Down

0 comments on commit 824be48

Please sign in to comment.