In the WP frontend, if the user inputs an invalid option, wp will just print out an error message and call exit 1. Instead of this, Parameters.validate and Analysis.run should return an Extension.Error.t and then in the callback, do
Parameters.validate params files >>= fun () ->
Analysis.run params files ctxt >>= fun () ->
Ok ()
In the WP frontend, if the user inputs an invalid option, wp will just print out an error message and call
exit 1
. Instead of this,Parameters.validate
andAnalysis.run
should return anExtension.Error.t
and then in the callback, do