Improve bash completion, so it completes names of remotes and backends in appropriate places.

Not necessarily everywhere, but a lot of the most often used places.

Re the use of .Internal, see
https://github.com/pcapriotti/optparse-applicative/issues/155
This commit is contained in:
Joey Hess 2015-09-14 13:19:04 -04:00
parent ffa8221517
commit 3f47d1b351
5 changed files with 32 additions and 2 deletions

View file

@ -67,6 +67,7 @@ optParser desc = FsckOptions
<*> optional (parseRemoteOption $ strOption
( long "from" <> short 'f' <> metavar paramRemote
<> help "check remote"
<> completeRemotes
))
<*> optional parseincremental
<*> optional (parseKeyOptions False)