summaryrefslogtreecommitdiff
path: root/CmdLine/GitAnnexShell.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2015-07-09 11:49:52 -0400
committerJoey Hess <joeyh@joeyh.name>2015-07-09 11:52:47 -0400
commit8a9d2a6e9d15626afbc6f4a85c753f377d69c229 (patch)
treea0186b23c65de7754ee76c93d2067da3a4e0e7fd /CmdLine/GitAnnexShell.hs
parent6204dcbd7b6a4ac7479b902e80299af2cb08350a (diff)
let optparse-applicative handle the usage display when run w/o command or bad command
Still generating the list of commands myself, to get it sorted into sections and with short synopses.
Diffstat (limited to 'CmdLine/GitAnnexShell.hs')
-rw-r--r--CmdLine/GitAnnexShell.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/CmdLine/GitAnnexShell.hs b/CmdLine/GitAnnexShell.hs
index fca37790b6..bda4f79072 100644
--- a/CmdLine/GitAnnexShell.hs
+++ b/CmdLine/GitAnnexShell.hs
@@ -101,7 +101,9 @@ builtin cmd dir params = do
let (params', fieldparams, opts) = partitionParams params
rsyncopts = ("RsyncOptions", unwords opts)
fields = rsyncopts : filter checkField (parseFields fieldparams)
- dispatch False (cmd : params') cmds options fields header mkrepo
+ dispatch False (cmd : params') cmds options fields mkrepo
+ "git-annex-shell"
+ "Restricted login shell for git-annex only SSH access"
where
mkrepo = do
r <- Git.Construct.repoAbsPath dir >>= Git.Construct.fromAbsPath