1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 00:42:33 +03:00

Pass it to optional to make it optional, apparently.

This commit is contained in:
Rob Rix 2015-12-16 01:53:18 -05:00
parent d0c3650045
commit cd460e4567

View File

@ -26,8 +26,7 @@ arguments :: Parser Argument
arguments = Argument arguments = Argument
<$> (flag Split Unified (long "unified" <> help "output a unified diff") <$> (flag Split Unified (long "unified" <> help "output a unified diff")
<|> flag' Split (long "split" <> help "output a split diff")) <|> flag' Split (long "split" <> help "output a split diff"))
<*> (Just <$> (strOption (long "output" <> short 'o' <> help "output directory for split diffs, defaulting to stdout if unspecified")) <*> (optional $ strOption (long "output" <> short 'o' <> help "output directory for split diffs, defaulting to stdout if unspecified"))
<|> flag' Nothing (internal <> hidden))
<*> strArgument (metavar "FILE a") <*> strArgument (metavar "FILE a")
<*> strArgument (metavar "FILE b") <*> strArgument (metavar "FILE b")