Created
April 30, 2018 05:01
-
-
Save pedrofurla/b850946b8c90b446000784d7f5285d82 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output :: Parser (Maybe OutFilename) | |
output = | |
( \x -> if x == "none" then Nothing else Just x ) <$> strOption | |
( long "output" | |
<> short 'o' | |
<> value "none" | |
<> metavar "FILENAME" | |
<> help "Output file" ) | |
<|> | |
flag' Nothing | |
( long "stdout" | |
<> help "Stdout" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment