init: Make description an optional parameter.

This commit is contained in:
Joey Hess 2011-08-29 14:13:38 -04:00
parent b2c5639dcc
commit d1154d0837
3 changed files with 4 additions and 7 deletions

View file

@ -7,7 +7,7 @@
module Command.Init where
import Control.Monad (when)
import Control.Monad
import Command
import qualified Annex
@ -17,15 +17,13 @@ import Init
command :: [Command]
command = [standaloneCommand "init" paramDesc seek
"initialize git-annex with repository description"]
"initialize git-annex"]
seek :: [CommandSeek]
seek = [withWords start]
start :: CommandStartWords
start ws = do
when (null description) $
error "please specify a description of this repository\n"
showStart "init" description
next $ perform description
where