limiting files based on metadata
Note that there is currently no caching, so --metadata foo=bar --metadata tag=blah will currently read the log 2x per file.
This commit is contained in:
parent
a18eae9a0f
commit
2075cdeb59
7 changed files with 49 additions and 11 deletions
|
@ -21,7 +21,7 @@ def = [withOptions [setOption] $ command "metadata" paramPaths seek
|
|||
SectionUtility "sets metadata of a file"]
|
||||
|
||||
setOption :: Option
|
||||
setOption = Option ['s'] ["set"] (ReqArg mkmod "field[+-]=value") "set metadata"
|
||||
setOption = Option ['s'] ["set"] (ReqArg mkmod "FIELD[+-]=VALUE") "set metadata"
|
||||
where
|
||||
mkmod p = case parseModMeta p of
|
||||
Left e -> error e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue