diff options
author | tv <tv@krebsco.de> | 2017-04-30 15:24:03 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-04-30 15:46:32 +0200 |
commit | 5f78ec96b34fe96b933d079776a24f2b23e767a3 (patch) | |
tree | 078335cbb1a04025d30bdd12bdeec14bca2b964c /Notmuch.hs | |
parent | 936ad5f12422e3d124ade90fae78f9ed0427fc7d (diff) |
Notmuch.search: support passing additional args
Diffstat (limited to 'Notmuch.hs')
-rw-r--r-- | Notmuch.hs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -140,9 +140,9 @@ notmuchWithInput args input = do return (exitCode, out, err) -search :: String -> IO (Either String [SearchResult]) -search term = - notmuch [ "search", "--format=json", "--format-version=2", term ] +search :: [String] -> IO (Either String [SearchResult]) +search args = + notmuch ("search" : "--format=json" : "--format-version=2" : args) >>= return . eitherDecode' |