simplify
This commit is contained in:
parent
3fad3e527e
commit
55ca64d851
1 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,8 @@ module GitAnnex where
|
|||
|
||||
import System.Console.GetOpt
|
||||
|
||||
import qualified GitRepo as Git
|
||||
import CmdLine
|
||||
import Command
|
||||
import Options
|
||||
|
||||
|
@ -73,3 +75,8 @@ options = commonOptions ++
|
|||
|
||||
header :: String
|
||||
header = "Usage: git-annex command [option ..]"
|
||||
|
||||
run :: [String] -> IO ()
|
||||
run args = do
|
||||
gitrepo <- Git.repoFromCwd
|
||||
dispatch gitrepo args cmds options header
|
||||
|
|
Loading…
Reference in a new issue