Added --smallerthan and --largerthan limits

This commit is contained in:
Joey Hess 2012-10-08 13:39:18 -04:00
parent 71fd18a97f
commit 7cd81bd978
6 changed files with 38 additions and 9 deletions

View file

@ -147,6 +147,10 @@ options = Option.common ++
"skip files with fewer copies"
, Option ['B'] ["inbackend"] (ReqArg Limit.addInBackend paramName)
"skip files not using a key-value backend"
, Option [] ["largerthan"] (ReqArg Limit.addLargerThan paramName)
"skip files larger than a size"
, Option [] ["smallerthan"] (ReqArg Limit.addSmallerThan paramName)
"skip files smaller than a size"
, Option ['T'] ["time-limit"] (ReqArg Limit.addTimeLimit paramTime)
"stop after the specified amount of time"
] ++ Option.matcher