finalOpt is the same as optional

This commit is contained in:
Joey Hess 2015-07-09 01:02:27 -04:00
parent 463709ab2a
commit d8d1499229
3 changed files with 4 additions and 10 deletions

View file

@ -46,7 +46,7 @@ optParser desc = DropOptions
<*> parseKeyOptions False
parseDropFromOption :: Parser (Maybe RemoteName)
parseDropFromOption = finalOpt $ strOption
parseDropFromOption = optional $ strOption
( long "from"
<> short 'f'
<> metavar paramRemote