summaryrefslogtreecommitdiff
path: root/Biz/Dragons/Analysis.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Dragons/Analysis.hs')
-rw-r--r--Biz/Dragons/Analysis.hs10
1 files changed, 6 insertions, 4 deletions
diff --git a/Biz/Dragons/Analysis.hs b/Biz/Dragons/Analysis.hs
index 8641a6d..c27eebb 100644
--- a/Biz/Dragons/Analysis.hs
+++ b/Biz/Dragons/Analysis.hs
@@ -43,8 +43,8 @@ move :: Cli.Arguments -> IO ()
move args = gitDir +> run authors /> Aeson.encode +> putStrLn
where
gitDir =
- Cli.argument "git-dir"
- |> Cli.getArgWithDefault args ".git"
+ Cli.longOption "git-dir"
+ |> Cli.getArgWithDefault args
|> Directory.makeAbsolute
authors =
-- i think this is not working? do i need optparse-applicative?
@@ -66,10 +66,12 @@ dragons-analyze
Usage:
dragons-analyze test
- dragons-analyze [--author=<email>]... <git-dir>
+ dragons-analyze [--author=<email>]...
Options:
- -a, --author List of active authors' emails.
+ --git-dir The git repo to analyze [default: ./.git]
+ -a, --author List of active authors' emails, may be specified
+ multiple times
|]
newtype Commit = Sha Text