use Alternative for parsing KeyOptions
This commit is contained in:
parent
94e703e8b8
commit
032e6485fa
3 changed files with 38 additions and 51 deletions
|
@ -51,7 +51,7 @@ data FsckOptions = FsckOptions
|
|||
{ fsckFiles :: CmdParams
|
||||
, fsckFromOption :: Maybe RemoteName
|
||||
, incrementalOpt :: Maybe IncrementalOpt
|
||||
, keyOptions :: KeyOptions
|
||||
, keyOptions :: Maybe KeyOptions
|
||||
}
|
||||
|
||||
data IncrementalOpt
|
||||
|
@ -67,7 +67,7 @@ optParser desc = FsckOptions
|
|||
<> help "check remote"
|
||||
))
|
||||
<*> optional parseincremental
|
||||
<*> parseKeyOptions False
|
||||
<*> optional (parseKeyOptions False)
|
||||
where
|
||||
parseincremental =
|
||||
flag' StartIncrementalO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue