summaryrefslogtreecommitdiff
path: root/Command/AddUnused.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-08 15:08:02 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-08 15:08:02 -0400
commite7e61fb6cbe5455ded9bb550a64121223c099fc2 (patch)
tree003a99697256ea516ad40f9fbdb854996b58c0cd /Command/AddUnused.hs
parent8879c96d157f06bbd2372064251676b7927ce38e (diff)
convert all commands to work with optparse-applicative
Still no options though.
Diffstat (limited to 'Command/AddUnused.hs')
-rw-r--r--Command/AddUnused.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Command/AddUnused.hs b/Command/AddUnused.hs
index a0e9ccba6..2b315eada 100644
--- a/Command/AddUnused.hs
+++ b/Command/AddUnused.hs
@@ -15,10 +15,12 @@ import Command.Unused (withUnusedMaps, UnusedMaps(..), startUnused)
import Types.Key
cmd :: Command
-cmd = notDirect $ command "addunused" (paramRepeating paramNumRange)
- seek SectionMaintenance "add back unused files"
+cmd = notDirect $
+ command "addunused" SectionMaintenance
+ "add back unused files"
+ (paramRepeating paramNumRange) (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek = withUnusedMaps start
start :: UnusedMaps -> Int -> CommandStart