Fail if --from or --to is passed to commands that do not support them.
This commit is contained in:
parent
c879eb873e
commit
b955238ec7
36 changed files with 58 additions and 46 deletions
|
@ -21,8 +21,8 @@ import Types.Key
|
|||
type UnusedMap = M.Map String Key
|
||||
|
||||
command :: [Command]
|
||||
command = [Command "dropunused" (paramRepeating paramNumber) needsRepo seek
|
||||
"drop unused file content"]
|
||||
command = [Command "dropunused" (paramRepeating paramNumber) (noTo >> needsRepo)
|
||||
seek "drop unused file content"]
|
||||
|
||||
seek :: [CommandSeek]
|
||||
seek = [withUnusedMaps]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue