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:
parent
d0c3650045
commit
cd460e4567
@ -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")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user