support parsing options like --to=here
Reworked remote name parsing to allow things like that. Command.Move uses it for --to=here, although there's not yet an implementation of that option. This commit was sponsored by Ignacio on Patreon.
This commit is contained in:
parent
df880fe815
commit
5ee6912cf3
6 changed files with 32 additions and 22 deletions
|
@ -62,7 +62,7 @@ data IncrementalOpt
|
|||
optParser :: CmdParamsDesc -> Parser FsckOptions
|
||||
optParser desc = FsckOptions
|
||||
<$> cmdParams desc
|
||||
<*> optional (parseRemoteOption $ strOption
|
||||
<*> optional (parseRemoteOption <$> strOption
|
||||
( long "from" <> short 'f' <> metavar paramRemote
|
||||
<> help "check remote"
|
||||
<> completeRemotes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue