diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-07-08 15:08:02 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-07-08 15:08:02 -0400 |
commit | e7e61fb6cbe5455ded9bb550a64121223c099fc2 (patch) | |
tree | 003a99697256ea516ad40f9fbdb854996b58c0cd /Command/Log.hs | |
parent | 8879c96d157f06bbd2372064251676b7927ce38e (diff) |
convert all commands to work with optparse-applicative
Still no options though.
Diffstat (limited to 'Command/Log.hs')
-rw-r--r-- | Command/Log.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Command/Log.hs b/Command/Log.hs index 3d618360d..6f3967c6a 100644 --- a/Command/Log.hs +++ b/Command/Log.hs @@ -40,7 +40,8 @@ type Outputter = Bool -> POSIXTime -> [UUID] -> Annex () cmd :: Command cmd = withOptions options $ - command "log" paramPaths seek SectionQuery "shows location log" + command "log" SectionQuery "shows location log" + paramPaths (withParams seek) options :: [Option] options = passthruOptions ++ [gourceOption] ++ annexedMatchingOptions @@ -56,7 +57,7 @@ passthruOptions = map odate ["since", "after", "until", "before"] ++ gourceOption :: Option gourceOption = flagOption [] "gource" "format output for gource" -seek :: CommandSeek +seek :: CmdParams -> CommandSeek seek ps = do m <- Remote.uuidDescriptions zone <- liftIO getCurrentTimeZone |