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/Undo.hs | |
parent | 8879c96d157f06bbd2372064251676b7927ce38e (diff) |
convert all commands to work with optparse-applicative
Still no options though.
Diffstat (limited to 'Command/Undo.hs')
-rw-r--r-- | Command/Undo.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Command/Undo.hs b/Command/Undo.hs index 4740aab48..c647dfba4 100644 --- a/Command/Undo.hs +++ b/Command/Undo.hs @@ -23,10 +23,11 @@ import qualified Command.Sync cmd :: Command cmd = notBareRepo $ - command "undo" paramPaths seek - SectionCommon "undo last change to a file or directory" + command "undo" SectionCommon + "undo last change to a file or directory" + paramPaths (withParams seek) -seek :: CommandSeek +seek :: CmdParams -> CommandSeek seek ps = do -- Safety first; avoid any undo that would touch files that are not -- in the index. |