From 53861087d55de45ec6b24f6e452469dfa72c1644 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 13 Feb 2014 02:24:30 -0400 Subject: 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. --- Command/MetaData.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Command') diff --git a/Command/MetaData.hs b/Command/MetaData.hs index cc0364a30..5608701f1 100644 --- a/Command/MetaData.hs +++ b/Command/MetaData.hs @@ -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 -- cgit v1.2.3