From b9793f06f52e7818ab4cb637fb83a01c47cfb9e6 Mon Sep 17 00:00:00 2001 From: Sonja Heinze Date: Tue, 16 Jan 2024 13:15:58 +0100 Subject: [PATCH] Fix misleading error in man page Signed-off-by: Sonja Heinze --- CHANGES.md | 3 +++ src/driver.ml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d50eef1e6..4ceaec27f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,6 +13,9 @@ unreleased transformations. All such errors are collected and appended as extension nodes to the final AST (#447, @burnleydev1) +- Fix a small mistake in the man pages: Embededding errors is done by default with + `-as-pp`, not with `-dump-ast` (#464, @pitag-ha) + 0.31.0 (2023-09-21) ------------------- diff --git a/src/driver.ml b/src/driver.ml index 4176ae8c0..124f3306c 100644 --- a/src/driver.ml +++ b/src/driver.ml @@ -1348,7 +1348,7 @@ let standalone_args = " Print the parsetree (same as ocamlc -dparsetree)" ); ( "-embed-errors", Arg.Set embed_errors, - " Embed errors in the output AST (default: true when -dump-ast, false \ + " Embed errors in the output AST (default: true when -as-pp, false \ otherwise)" ); ( "-null", Arg.Unit (fun () -> set_output_mode Null),