diff options
| author | Emilio Jesus Gallego Arias | 2019-02-11 13:27:13 +0100 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-02-11 13:27:13 +0100 |
| commit | 30a8190264267e0567f6c52ed263cb4fb6ac9b0c (patch) | |
| tree | bee4d2dbc188c119d21e29c91a0b36578f934d52 | |
| parent | d6def525d3d8a3c0470a5dfa0408f27daf2ef0aa (diff) | |
| parent | 22bbbd1a8cf5b75e9e9002ce9cfc8b5ced5f355a (diff) | |
Merge PR #9541: [stm] -async-proofs-tac-j accepts only >= 1 (fix #9533)
Reviewed-by: ejgallego
| -rw-r--r-- | toplevel/coqargs.ml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/toplevel/coqargs.ml b/toplevel/coqargs.ml index b549f22119..1e1a74209f 100644 --- a/toplevel/coqargs.ml +++ b/toplevel/coqargs.ml @@ -311,8 +311,13 @@ let parse_args ~help ~init arglist : t * string list = }} |"-async-proofs-tac-j" -> + let j = get_int opt (next ()) in + if j <= 0 then begin + prerr_endline ("Error: -async-proofs-tac-j only accepts values greater than or equal to 1"); + exit 1; + end; { oval with stm_flags = { oval.stm_flags with - Stm.AsyncOpts.async_proofs_n_tacworkers = (get_int opt (next ())) + Stm.AsyncOpts.async_proofs_n_tacworkers = j }} |"-async-proofs-worker-priority" -> |
