Added --mimetype and --mimeencoding file matching options.

Already had these for largefiles matching, but I forgot to add them as
command-line options.
This commit is contained in:
Joey Hess 2019-09-19 11:32:12 -04:00
parent 133aba5729
commit fda1bdd679
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 75 additions and 7 deletions

View file

@ -282,6 +282,16 @@ keyMatchingOptions' =
<> help "match files accessed within a time interval"
<> hidden
)
, globalSetter Limit.addMimeType $ strOption
( long "mimetype" <> metavar paramGlob
<> help "match files by mime type"
<> hidden
)
, globalSetter Limit.addMimeEncoding $ strOption
( long "mimeencoding" <> metavar paramGlob
<> help "match files by mime encoding"
<> hidden
)
]
-- Options to match files which may not yet be annexed.