diff options
author | Joey Hess <joey@kitenet.net> | 2010-12-31 13:39:30 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-31 13:39:43 -0400 |
commit | 60df4e5728b8af804f06c39ef3b897af12247ceb (patch) | |
tree | 682d1443d4d8e27f63f87ee9e0ae2f5629538385 /git-annex.hs | |
parent | f38aa3e83abb251a88362dbaf6e8fbddd477fa53 (diff) |
git-annex-shell is complete
still not used
Diffstat (limited to 'git-annex.hs')
-rw-r--r-- | git-annex.hs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/git-annex.hs b/git-annex.hs index 110054fd5..dff67f9d8 100644 --- a/git-annex.hs +++ b/git-annex.hs @@ -6,6 +6,7 @@ -} import System.Environment +import System.Console.GetOpt import qualified GitRepo as Git import CmdLine @@ -59,6 +60,18 @@ cmds = concat , Command.Find.command ] +options :: [Option] +options = commonOptions ++ + [ Option ['k'] ["key"] (ReqArg (storeOptString "key") paramKey) + "specify a key to use" + , Option ['t'] ["to"] (ReqArg (storeOptString "torepository") paramRemote) + "specify to where to transfer content" + , Option ['f'] ["from"] (ReqArg (storeOptString "fromrepository") paramRemote) + "specify from where to transfer content" + , Option ['x'] ["exclude"] (ReqArg (storeOptString "exclude") paramGlob) + "skip files matching the glob pattern" + ] + header :: String header = "Usage: git-annex command [option ..]" @@ -66,4 +79,4 @@ main :: IO () main = do args <- getArgs gitrepo <- Git.repoFromCwd - dispatch gitrepo args cmds commonOptions header + dispatch gitrepo args cmds options header |