summaryrefslogtreecommitdiff
path: root/Command/Whereis.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2018-02-19 14:28:17 -0400
committerJoey Hess <joeyh@joeyh.name>2018-02-19 14:32:15 -0400
commit6583448bab011c1e74eba6ced9bc2b859d91025d (patch)
tree58fc9139f5053090d9b4fd739cf57c80cf121c13 /Command/Whereis.hs
parentfa65f1d240142f22049c35e8fdea5b67bdda1784 (diff)
add --json-error-messages (not yet implemented)
Added --json-error-messages option, which includes error messages in the json output, rather than outputting them to stderr. The actual rediretion of errors is not implemented yet, this is only the docs and option plumbing. This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'Command/Whereis.hs')
-rw-r--r--Command/Whereis.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Whereis.hs b/Command/Whereis.hs
index 295d11994c..fddb2b5c6e 100644
--- a/Command/Whereis.hs
+++ b/Command/Whereis.hs
@@ -17,7 +17,7 @@ import Annex.UUID
import qualified Data.Map as M
cmd :: Command
-cmd = noCommit $ withGlobalOptions (jsonOption : annexedMatchingOptions) $
+cmd = noCommit $ withGlobalOptions [jsonOptions, annexedMatchingOptions] $
command "whereis" SectionQuery
"lists repositories that have file content"
paramPaths (seek <$$> optParser)