better multiword parameter handling

This way, individual words as entered on the command line are available
to commands.
This commit is contained in:
Joey Hess 2011-05-16 12:25:54 -04:00
parent 8fa17eaba0
commit ceff04ff3e
7 changed files with 30 additions and 22 deletions

View file

@ -18,10 +18,11 @@ command = [repoCommand "untrust" (paramRepeating paramRemote) seek
"do not trust a repository"]
seek :: [CommandSeek]
seek = [withString start]
seek = [withWords start]
start :: CommandStartString
start name = notBareRepo $ do
start :: CommandStartWords
start ws = notBareRepo $ do
let name = unwords ws
showStart "untrust" name
u <- Remote.nameToUUID name
next $ perform u